this.fluidbook.displayOnePage = (this.orientation == 'portrait');
if (changeOrientation) {
- console.warn('Orientation change! ' + this.orientation);
$(this.fluidbook).trigger('fluidbook.resize.beforeOrientationChange');
this.fluidbook.zoom.resetZoom();
if(!this.fluidbook.firstTransition) {
updateMovePosPct: function () {
this.calcDragLimits();
- this.setMovePos(this.dragXPct * (this.dragMaxX - this.dragMinX), this.dragYPct * (this.dragMaxY - this.dragMinY));
+ this.setMovePos((this.dragXPct * (this.dragMaxX - this.dragMinX)) + this.dragMinX, (this.dragYPct * (this.dragMaxY - this.dragMinY)) + this.dragMinY);
},
setMovePos: function (x, y) {
calcDragLimits: function () {
if (this.scale <= 1) {
this.dragMinX = this.dragMaxX = this.dragMinY = this.dragMaxY = 0;
+ this.dragYPct = this.dragXPct = 0.5;
+
return;
}
var irect = this.element.find('.zoomhdImage').get(0).getBoundingClientRect();