});\r
} else {\r
$("#help").click(function() {\r
- $this.toggle();\r
+ $this.show();\r
return false;\r
});\r
}\r
},\r
+ isVisible: function() {\r
+ return this.view.is(":visible");\r
+ },\r
show: function(time) {\r
this.clearTimeout();\r
if (time == undefined) {\r
time = 0;\r
}\r
\r
- if (this.view.is(":visible")) {\r
+ if (this.isVisible()) {\r
return false;\r
}\r
\r
this.view.show();\r
this.fluidbook.showAllButtons();\r
if (this.fluidbook.support.isMobile) {\r
- $(document).one('click touchend', function() {\r
+ $(document).one('click t', function(e) {\r
+ e.stopImmediatePropagation();\r
+ e.stopPropagation();\r
+ e.preventDefault();\r
+\r
$this.hide();\r
+ return false;\r
});\r
} else {\r
if (time != 0) {\r
hide: function() {\r
this.clearTimeout();\r
var $this = this;\r
- if (this.view.is(':visible')) {\r
+ if (this.isVisible()) {\r
this.view.hide();\r
this.fluidbook.hideUnnecessaryButtons();\r
if (this.fluidbook.support.isMobile) {\r
return false;\r
},\r
toggle: function() {\r
- if (this.view.is(':visible')) {\r
+ if (this.isVisible()) {\r
this.hide();\r
} else {\r
this.show();\r
initEvents: function() {\r
var $this = this;\r
$(document).on('click', '#down', function() {\r
+ if ($this.fluidbook.help.isVisible()) {\r
+ return;\r
+ }\r
if ($(this).hasClass('right')) {\r
$this.fluidbook.goNextChapter();\r
} else {\r
return this._move(e.screenX, e.screenY);
},
allowMove: function() {
- return !(this.fluidbook.support.getZoomLevel() <= 1 && !this.fluidbook.viewMode());
+ return !(this.fluidbook.support.getZoomLevel() <= 1 && !this.fluidbook.viewMode());
},
allowSlide: function() {
- return !(this.gesturing || this.fluidbook.support.getZoomLevel() > 1 || this.fluidbook.viewMode());
+ return !(this.gesturing || this.fluidbook.support.getZoomLevel() > 1 || this.fluidbook.viewMode() || this.fluidbook.help.isVisible());
},
reset: function() {
this.startX = 0;
$(function() {
FastClick.attach(document.body);
-
+
$_GET = parseGet();
INITED = false;
}
function goNextPage(e) {
+ if (fluidbook.help.isVisible()) {
+ return;
+ }
var y = e.offsetY == undefined ? e.originalEvent.layerY : e.offsetY;
+
if (y < 65) {
if (fluidbook.pad.enabled) {
fluidbook.goNextChapter();
}
function goPreviousPage(e) {
+ if (fluidbook.help.isVisible()) {
+ return;
+ }
var y = e.offsetY == undefined ? e.originalEvent.layerY : e.offsetY;
if (y < 65) {
if (fluidbook.pad.enabled) {