@internetarchive/bookreader
Advanced tools
Comparing version 5.0.0-62 to 5.0.0-63
@@ -0,1 +1,5 @@ | ||
# 5.0.0-63 | ||
Fix: Don't limit autoFit zoom to real world size @cdrini | ||
Dev: Update test deps @cdrini | ||
# 5.0.0-62 | ||
@@ -2,0 +6,0 @@ - Fix: Make text selection work in Safari 15.4+ @cdrini |
{ | ||
"name": "@internetarchive/bookreader", | ||
"version": "5.0.0-62", | ||
"version": "5.0.0-63", | ||
"description": "The Internet Archive BookReader.", | ||
@@ -45,3 +45,3 @@ "repository": { | ||
"@babel/core": "7.17.9", | ||
"@babel/eslint-parser": "7.21.3", | ||
"@babel/eslint-parser": "7.21.8", | ||
"@babel/plugin-proposal-class-properties": "7.16.7", | ||
@@ -51,3 +51,3 @@ "@babel/plugin-proposal-decorators": "7.17.9", | ||
"@open-wc/testing-helpers": "^2.2.1", | ||
"@types/jest": "^29.5.0", | ||
"@types/jest": "29.5.2", | ||
"@webcomponents/webcomponentsjs": "^2.6.0", | ||
@@ -77,6 +77,6 @@ "babel-loader": "8.2.5", | ||
"sass": "1.52.1", | ||
"sinon": "15.0.3", | ||
"sinon": "15.1.0", | ||
"soundmanager2": "2.97.20170602", | ||
"svgo": "2.8.0", | ||
"testcafe": "2.4.0", | ||
"testcafe": "2.6.2", | ||
"testcafe-browser-provider-browserstack": "^1.13.2-alpha.1", | ||
@@ -83,0 +83,0 @@ "webpack": "5.51.1", |
@@ -448,3 +448,2 @@ // @ts-check | ||
const spread = page.spread; | ||
// Default to real size if it fits, otherwise default to full height | ||
const bookWidth = this.computePositions(spread.left, spread.right).bookWidth; | ||
@@ -462,7 +461,7 @@ const bookHeight = this.computePageHeight(spread.left || spread.right); | ||
if (autoFit == 'width') { | ||
scale = Math.min(widthScale, 1); | ||
scale = widthScale; | ||
} else if (autoFit == 'height') { | ||
scale = Math.min(heightScale, 1); | ||
scale = heightScale; | ||
} else if (autoFit == 'auto') { | ||
scale = Math.min(widthScale, heightScale, 1); | ||
scale = Math.min(widthScale, heightScale); | ||
} else if (autoFit == 'none') { | ||
@@ -469,0 +468,0 @@ scale = this.scale; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
8872678
28559