}
});
$(document).on('click', '#links', function (e) {
- if ($this.fluidbook.zoom.enabled && $this.fluidbook.input.isUsingMouse()) {
+ if ($this.fluidbook.zoom.enabled && $this.fluidbook.input.isUsingMouse() && !this.fluidbook.hasDraggableOnPage()) {
$this.clickZoom(e);
return false;
}
});
},
+ hasDraggableOnPage: function (v) {
+ if (v === undefined) {
+ return $('body').hasClass('draggable-on-page');
+ } else if (v) {
+ $('body').addClass('draggable-on-page');
+ } else {
+ $('body').removeClass('draggable-on-page');
+ }
+ },
+
_boolean: function (v) {
if (v === undefined || v === null || v === '0' || v === 0 || v === 'false' || !v) {
return false;
countup.start();
}, to.delay * 1000);
} else if (animation.type === 'draggable') {
- if (this.fluidbook.touch) {
- this.fluidbook.touch.hasDraggableOnPage = true;
- }
+ this.fluidbook.hasDraggableOnPage(true);
$(link).css('pointer-events', 'auto');
var $this = this;
var draggable = new Draggable(link, {
this.triggerOffset = this.fluidbook.mobilefirst.enabled ? 0.1 : 0.05;
this.draggingFromOutside = false;
- this.hasDraggableOnPage = false;
this.init();
}
// }
$(this.fluidbook).on('fluidbook.page.change.start', function () {
- $this.draggingFromOutside = $this.hasDraggableOnPage = false;
+ $this.draggingFromOutside = false;
+ $this.fluidbook.hasDraggableOnPage(false);
});
$(this.fluidbook).on('fluidbook.page.change.end', function () {
}
var ltr = this.fluidbook.l10n.dir === 'ltr';
- if (!this.draggingFromOutside && !this.hasDraggableOnPage) {
+ if (!this.draggingFromOutside && !this.fluidbook.hasDraggableOnPage()) {
if ((this.offsetX < 0 && ltr) || (this.offsetX > 0 && !ltr)) {
this.fluidbook.goNextPage();
} else {
}
/* Desktop devices */
-.using-mouse.msie body:not(.zoom-disabled) {
+.using-mouse.msie body:not(.zoom-disabled):not(.draggable-on-page) {
#links .container {
cursor: url(images/cursors/zoom-in.cur), auto;
}
}
}
-&.using-mouse.no-msie body:not(.zoom-disabled) {
+&.using-mouse.no-msie body:not(.zoom-disabled):not(.draggable-on-page) {
#links .container {
cursor: zoom-in;
}