1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

Add viewport scaling

This commit is contained in:
Fred Chasen 2016-08-12 17:10:43 +02:00
parent 1462d473df
commit a443bf00ce
5 changed files with 87 additions and 29 deletions

View file

@ -396,7 +396,7 @@ SingleViewManager.prototype.setLayout = function(layout){
};
SingleViewManager.prototype.updateFlow = function(flow){
var axis = (flow === "paginated") ? "horizontal" : "paginated";
var axis = (flow === "paginated") ? "horizontal" : "vertical";
this.settings.axis = axis;
@ -407,6 +407,7 @@ SingleViewManager.prototype.updateFlow = function(flow){
// });
};
//-- Enable binding events to Manager
RSVP.EventTarget.mixin(SingleViewManager.prototype);