1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00

Built, version bump

This commit is contained in:
Fred Chasen 2015-01-24 18:45:19 -05:00
parent f2fa749793
commit f1abf5896e
10 changed files with 32 additions and 14 deletions

File diff suppressed because one or more lines are too long

10
reader/js/epub.min.js vendored
View file

@ -2185,7 +2185,7 @@ global.RSVP = requireModule('rsvp');
'use strict';
var EPUBJS = EPUBJS || {};
EPUBJS.VERSION = "0.2.4";
EPUBJS.VERSION = "0.2.5";
EPUBJS.plugins = EPUBJS.plugins || {};
@ -5880,7 +5880,13 @@ EPUBJS.Render.Iframe.prototype.setLeft = function(leftPos){
// this.bodyEl.style.marginLeft = -leftPos + "px";
// this.docEl.style.marginLeft = -leftPos + "px";
// this.docEl.style[EPUBJS.Render.Iframe.transform] = 'translate('+ (-leftPos) + 'px, 0)';
this.document.defaultView.scrollTo(leftPos, 0);
if (navigator.userAgent.match(/(iPad|iPhone|iPod|Mobile|Android)/g)) {
this.docEl.style["-webkit-transform"] = 'translate('+ (-leftPos) + 'px, 0)';
} else {
this.document.defaultView.scrollTo(leftPos, 0);
}
};
EPUBJS.Render.Iframe.prototype.setStyle = function(style, val, prefixed){