v1.3 - This version adds a few new features brought to you by knownboyofno
a. A portrait setting "P" was added to the quality setting for better zoomed out portrait views
b. An auto off (default) and auto on was added to the page offset
c. You can change pages by either swiping from the edge on the right to the left for tapping the bottom of the screen on the right (for next page and reverse for previous page)
Bakugan писал(а):zuppa
может стоит откатится на 1.3 пока не поправят глюки?
"hasToc": true
toggleToolbar: function() {
if(this.$.main_toolbar.showing) {
this.$.main_toolbar.hide();
this.$.pageNumbering.hide();
} else {
this.$.main_toolbar.show();
this.$.pageNumbering.show();
}
toggleToolbar: function(x, e) {
if(e.y > window.screen.height/2) {
if(e.x < window.screen.width/3)
this.previousPage();
else if(e.x > window.screen.width*2/3)
this.nextPage();
return;
}
if(this.$.main_toolbar.showing) {
this.$.main_toolbar.hide();
this.$.pageNumbering.hide();
} else {
this.$.main_toolbar.show();
this.$.pageNumbering.show();
}
onGetRight: "getNextPage",
onGetRight: "getNextPage",
onSnapFinish: "resetZoom",
goToPage: function(page) {
this.setCurrentPage(page-1);
this.$.onePageView.setCenterView(this.$.onePageView.images[page-1]);
},
goToPage: function(page) {
this.setCurrentPage(page-1);
this.$.onePageView.setCenterView(this.$.onePageView.images[page-1]);
setTimeout(this.resetZoom.bind(this), 0);
},
gestureendHandler: function(x, event) {
if(event.type==="gestureend")
this.currentZoom = this.$.onePageView.fetchCurrentView().getZoom();
},
dragfinishHandler: function(x, event) {
if(event.type==="dragfinish")
this.resetZoom();
},
resetZoom: function() {
if(this.currentZoom!==undefined) {
var lv = this.$.onePageView.fetchView('left');
var cv = this.$.onePageView.fetchView('center');
var rv = this.$.onePageView.fetchView('right');
if(lv) lv.setZoom(this.currentZoom);
if(cv) cv.setZoom(this.currentZoom);
if(rv) rv.setZoom(this.currentZoom);
}
}
Вернуться в HP TouchPad - Программы