Skip to content

Commit

Permalink
Merge pull request internetarchive#1209 from cdrini/1128/fix/pinch-zo…
Browse files Browse the repository at this point in the history
…om-ios
  • Loading branch information
cdrini authored Aug 14, 2023
2 parents 69e44bb + 0b558fc commit c4d834b
Show file tree
Hide file tree
Showing 8 changed files with 283 additions and 106 deletions.
44 changes: 31 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"eslint": "^7.32.0",
"eslint-plugin-no-jquery": "^2.7.0",
"eslint-plugin-testcafe": "^0.2.1",
"hammerjs": "^2.0.8",
"http-server": "14.1.1",
"interactjs": "^1.10.18",
"iso-language-codes": "1.1.0",
"jest": "29.6.2",
"jest-environment-jsdom": "^29.4.3",
Expand Down
2 changes: 1 addition & 1 deletion src/BookReader/Mode1Up.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class Mode1Up {
new DragScrollable(this.mode1UpLit, {
preventDefault: true,
dragSelector: '.br-mode-1up__visible-world',
// Only handle mouse events; let browser/HammerJS handle touch
// Only handle mouse events; let browser/interact.js handle touch
dragstart: 'mousedown',
dragcontinue: 'mousemove',
dragend: 'mouseup',
Expand Down
3 changes: 0 additions & 3 deletions src/BookReader/Mode1UpLit.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ export class Mode1UpLit extends LitElement {

@property({ type: Number })
scale = 1;
/** Position (in unit-less, [0, 1] coordinates) in client to scale around */
@property({ type: Object })
scaleCenter = { x: 0.5, y: 0.5 };

/************** VIRTUAL-SCROLLING PROPERTIES **************/

Expand Down
4 changes: 0 additions & 4 deletions src/BookReader/Mode2UpLit.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ export class Mode2UpLit extends LitElement {

initialScale = 1;

/** Position (in unit-less, [0, 1] coordinates) in client to scale around */
@property({ type: Object })
scaleCenter = { x: 0.5, y: 0.5 };

/** @type {import('./options').AutoFitValues} */
@property({ type: String })
autoFit = 'auto';
Expand Down
Loading

0 comments on commit c4d834b

Please sign in to comment.