}, to.delay * 1000);
} else if (animation.type === 'draggable') {
$(link).css('pointer-events', 'auto');
+ var $this = this;
var draggable = new Draggable(link, {
- inertia: true, type: 'x', onRelease: function () {
+ inertia: true, type: 'x',
+ onDragStart: function () {
+ $this.fluidbook.touch.draggingFromOutside = true;
+ },
+ onRelease: function () {
var d = this;
+ setTimeout(function () {
+ $this.fluidbook.touch.draggingFromOutside = false;
+ }, 250);
+
if (animation.drop === 'clickhide') {
$('#links .link a').each(function () {
if (d.hitTest(this)) {
}
});
}
+
}
});
} else {
this.triggerOffset = this.fluidbook.mobilefirst.enabled ? 0.1 : 0.05;
+ this.draggingFromOutside = false;
+
this.init();
}
}
var ltr = this.fluidbook.l10n.dir === 'ltr';
- if ((this.offsetX < 0 && ltr) || (this.offsetX > 0 && !ltr)) {
- this.fluidbook.goNextPage();
- } else {
- this.fluidbook.goPreviousPage();
+ if (!this.draggingFromOutside) {
+ if ((this.offsetX < 0 && ltr) || (this.offsetX > 0 && !ltr)) {
+ this.fluidbook.goNextPage();
+ } else {
+ this.fluidbook.goPreviousPage();
+ }
}
return true;
} else {