Handle clicking slider when playing

This commit is contained in:
s1341 2013-12-22 18:27:34 +02:00
parent b4baba6155
commit d89babfaeb

View file

@ -49,11 +49,13 @@ $.Class("RevisionSlider",
},
onChange: function (value) {
console.log("in change handler:", value);
this.goToRevision(value);
if (!this.is_playing)
this.goToRevision(value);
},
onSlide: function (value) {
console.log("in slide handler:", value);
this.goToRevision(value);
if (!this.is_playing)
this.goToRevision(value);
},
/**
* Populate the elements dictionary with the various elements we might want