mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-28 11:26:16 -04:00
Handle clicking slider when playing
This commit is contained in:
parent
b4baba6155
commit
d89babfaeb
1 changed files with 4 additions and 2 deletions
|
@ -49,10 +49,12 @@ $.Class("RevisionSlider",
|
||||||
},
|
},
|
||||||
onChange: function (value) {
|
onChange: function (value) {
|
||||||
console.log("in change handler:", value);
|
console.log("in change handler:", value);
|
||||||
|
if (!this.is_playing)
|
||||||
this.goToRevision(value);
|
this.goToRevision(value);
|
||||||
},
|
},
|
||||||
onSlide: function (value) {
|
onSlide: function (value) {
|
||||||
console.log("in slide handler:", value);
|
console.log("in slide handler:", value);
|
||||||
|
if (!this.is_playing)
|
||||||
this.goToRevision(value);
|
this.goToRevision(value);
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue