});
$("#slidercursor").on('mousedown', function (e) {
- $this.dragCursor(e, false, false);
+ $this.dragCursor(e, false, true);
+ return true;
});
interact(document.getElementById("slidercursor")).draggable({
inertia: false,
onstart: function (event) {
- return $this.dragCursor(event, false);
+ return $this.dragCursor(event, false, true);
},
onmove: function (event) {
- return $this.dragCursor(event, false);
+ return $this.dragCursor(event, false, true);
},
onend: function (event) {
- return $this.dragCursor(event, true);
+ return $this.dragCursor(event, true, true);
}
});
this.fluidbook.setCurrentPage(page);
}
if (updateCursor) {
+ console.log('move to page ' + page);
this.updateCursorPosition(page);
}
return false;
$("#slidercursor").css('left', this.getCursorXByPage(page));
- if ($("#sliderthumb").is(':visible') && !$("#slider").hasClass('hover')) {
- this.updateThumb(page);
+ if ($("#sliderthumb").is(':visible')) {
+ if ($("#slider").hasClass('hover') && !$("#slider").hasClass('drag')) {
+
+ } else {
+ this.updateThumb(page);
+ }
}
},