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:
parent
1462d473df
commit
a443bf00ce
5 changed files with 87 additions and 29 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue