1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

Convert fullsize to setting

This commit is contained in:
Fred Chasen 2018-08-23 18:59:47 -07:00
parent 831ffa5424
commit c3b074e9cf
2 changed files with 8 additions and 8 deletions

View file

@ -1,6 +1,6 @@
{
"name": "epubjs",
"version": "0.3.68",
"version": "0.3.69",
"description": "Parse and Render Epubs",
"main": "lib/index.js",
"module": "src/index.js",

View file

@ -113,7 +113,7 @@ class DefaultViewManager {
this.destroy();
}.bind(this));
if(!this.fullsize) {
if(!this.settings.fullsize) {
scroller = this.container;
} else {
scroller = window;
@ -125,7 +125,7 @@ class DefaultViewManager {
removeEventListeners(){
var scroller;
if(!this.fullsize) {
if(!this.settings.fullsize) {
scroller = this.container;
} else {
scroller = window;
@ -582,7 +582,7 @@ class DefaultViewManager {
let offset = 0;
let used = 0;
if(this.fullsize) {
if(this.settings.fullsize) {
offset = window.scrollY;
}
@ -631,7 +631,7 @@ class DefaultViewManager {
let left = 0;
let used = 0;
if(this.fullsize) {
if(this.settings.fullsize) {
left = window.scrollX;
}
@ -739,7 +739,7 @@ class DefaultViewManager {
this.ignore = true;
}
if(!this.fullsize) {
if(!this.settings.fullsize) {
if(x) this.container.scrollLeft += x * dir;
if(y) this.container.scrollTop += y;
} else {
@ -753,7 +753,7 @@ class DefaultViewManager {
this.ignore = true;
}
if(!this.fullsize) {
if(!this.settings.fullsize) {
this.container.scrollLeft = x;
this.container.scrollTop = y;
} else {
@ -766,7 +766,7 @@ class DefaultViewManager {
let scrollTop;
let scrollLeft;
if(!this.fullsize) {
if(!this.settings.fullsize) {
scrollTop = this.container.scrollTop;
scrollLeft = this.container.scrollLeft;
} else {