<meta http-equiv="Content-Security-Policy"
content="default-src * gap://ready file:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' *.google-analytics.com; img-src * data:">
<!--<meta name="apple-mobile-web-app-capable" content="yes">-->
- <meta name="viewport" content="initial-scale=1,minimum-scale=1">
+ <meta name="viewport" content="initial-scale=1,minimum-scale=1,user-scalable=no">
<meta name="google" content="notranslate">
<!-- $description -->
<!-- $style -->
<!-- $ga -->
<!-- $favicon -->
</head>
-<body style="background-color:#<!-- $bgcolor -->;" data-branch="mobilezoom">
+<body style="background-color:#<!-- $bgcolor -->;" data-branch="master">
<!--googleoff: all-->
<!-- $svg -->
<div id="message"><!-- $message --></div>
var res = this.getLink('interface-previous', '#', 'previous', '', '', false);
res += this.getLink('interface-next', '#', 'next', '', '', false);
$('#interface').append(res);
- $(document).on('touchstart click', '#next', goNextPage);
- $(document).on('touchstart click', '#previous', goPreviousPage);
+ $(document).on('click', '#next', goNextPage);
+ $(document).on('click', '#previous', goPreviousPage);
}
};
\ No newline at end of file
interfaceScale = Math.min(1, this.ww / refWidth, this.hh / this.referenceHeight);
}
- if (this.fluidbook.support.android) {
- // Enable double tap zoom for android
- this.fluidbook.viewport.width = this.ww + 1;
- this.fluidbook.viewport.updateViewport();
- }
-
-
var navScale = interfaceScale * parseInt(this.fluidbook.datas.mobileNavScale) / 100;
var cssInterfaceScale = [interfaceScale, interfaceScale];
var cssNavScale = [navScale, navScale];
});
},
handleOrientation: function () {
+ var $this = this;
var changeOrientation = this.orientation != '';
var o = this.fluidbook.support.getOrientation();
var newo;
return;
}
- if (e.originalEvent.touches != undefined && e.originalEvent.touches.length > 0) {
- var o = $("#next").offset();
- y = e.originalEvent.touches[0].pageY - o.top;
- } else {
- y = e.offsetY == undefined ? e.originalEvent.layerY : e.offsetY;
- }
-
-
+ var y = e.offsetY == undefined ? e.originalEvent.layerY : e.offsetY;
if (y < 65) {
if (fluidbook.pad.enabled) {
fluidbook.goNextChapter();
if (fluidbook.help.isVisible()) {
return;
}
- var y;
- if (e.originalEvent.touches != undefined && e.originalEvent.touches.length > 0) {
- var o = $("#previous").offset();
- y = e.originalEvent.touches[0].pageY - o.top;
- } else {
- y = e.offsetY == undefined ? e.originalEvent.layerY : e.offsetY;
- }
+ var y = e.offsetY == undefined ? e.originalEvent.layerY : e.offsetY;
+
if (y < 65) {
if (fluidbook.pad.enabled) {
fluidbook.goPreviousChapter();