forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lightbox: Swap panzoom library to anvaka/panzoom.
This PR changes the library used for panning and zooming in the lightbox module from timmywil/panzoom to avanka/panzoom. The original (timmywil) version of the library contains a bug where if you have a high resolution touchpad and Firefox and you zoom in and out repeatedly on an image, the image may drift. avanka/panzoom does not appear to display this behavior. Restores the behaviour from before 5f83bc5, where clicking outside the image closes the lightbox, primarily by way of swapping out the panzoom library. Fixes: zulip#21163.
- Loading branch information
Showing
5 changed files
with
79 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1377,11 +1377,6 @@ | |
mkdirp "^1.0.4" | ||
rimraf "^3.0.2" | ||
|
||
"@panzoom/panzoom@^4.4.3": | ||
version "4.4.3" | ||
resolved "https://registry.yarnpkg.com/@panzoom/panzoom/-/panzoom-4.4.3.tgz#439ef0c3eba1cba0ad9b661fda5961aa2e2eec64" | ||
integrity sha512-fTAr7/bc9ukvWKxxqdoAuIhKhvu6TwuNiGcA0N3lrSj5OZGlISGLXcSZZyN7kgqH/6icYS7b18UT/Iq/W2rTOA== | ||
|
||
"@plotly/[email protected]": | ||
version "0.33.1" | ||
resolved "https://registry.yarnpkg.com/@plotly/d3-sankey-circular/-/d3-sankey-circular-0.33.1.tgz#15d1e0337e0e4b1135bdf0e2195c88adacace1a7" | ||
|
@@ -2352,6 +2347,13 @@ almost-equal@^1.1.0: | |
resolved "https://registry.yarnpkg.com/almost-equal/-/almost-equal-1.1.0.tgz#f851c631138757994276aa2efbe8dfa3066cccdd" | ||
integrity sha1-+FHGMROHV5lCdqou++jfowZszN0= | ||
|
||
amator@^1.1.0: | ||
version "1.1.0" | ||
resolved "https://registry.yarnpkg.com/amator/-/amator-1.1.0.tgz#08c6b60bc93aec2b61bbfc0c4d677d30323cc0f1" | ||
integrity sha1-CMa2C8k67Cthu/wMTWd9MDI8wPE= | ||
dependencies: | ||
bezier-easing "^2.0.3" | ||
|
||
ansi-escapes@^3.2.0: | ||
version "3.2.0" | ||
resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" | ||
|
@@ -2713,6 +2715,11 @@ [email protected]: | |
resolved "https://registry.yarnpkg.com/batch/-/batch-0.6.1.tgz#dc34314f4e679318093fc760272525f94bf25c16" | ||
integrity sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY= | ||
|
||
bezier-easing@^2.0.3: | ||
version "2.1.0" | ||
resolved "https://registry.yarnpkg.com/bezier-easing/-/bezier-easing-2.1.0.tgz#c04dfe8b926d6ecaca1813d69ff179b7c2025d86" | ||
integrity sha1-wE3+i5JtbsrKGBPWn/F5t8ICXYY= | ||
|
||
big.js@^3.1.3: | ||
version "3.2.0" | ||
resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.2.0.tgz#a5fc298b81b9e0dca2e458824784b65c52ba588e" | ||
|
@@ -7455,6 +7462,11 @@ next-tick@~1.0.0: | |
resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" | ||
integrity sha1-yobR/ogoFpsBICCOPchCS524NCw= | ||
|
||
ngraph.events@^1.2.1: | ||
version "1.2.1" | ||
resolved "https://registry.yarnpkg.com/ngraph.events/-/ngraph.events-1.2.1.tgz#6e40425ef9dec1e074bbef6da56c8d79b9188fd8" | ||
integrity sha512-D4C+nXH/RFxioGXQdHu8ELDtC6EaCiNsZtih0IvyGN81OZSUby4jXoJ5+RNWasfsd0FnKxxpAROyUMzw64QNsw== | ||
|
||
no-case@^3.0.4: | ||
version "3.0.4" | ||
resolved "https://registry.yarnpkg.com/no-case/-/no-case-3.0.4.tgz#d361fd5c9800f558551a8369fc0dcd4662b6124d" | ||
|
@@ -7909,6 +7921,15 @@ pako@^2.0.3: | |
resolved "https://registry.yarnpkg.com/pako/-/pako-2.0.4.tgz#6cebc4bbb0b6c73b0d5b8d7e8476e2b2fbea576d" | ||
integrity sha512-v8tweI900AUkZN6heMU/4Uy4cXRc2AYNRggVmTR+dEncawDJgCdLMximOVA2p4qO57WMynangsfGRb5WD6L1Bg== | ||
|
||
panzoom@^9.4.2: | ||
version "9.4.2" | ||
resolved "https://registry.yarnpkg.com/panzoom/-/panzoom-9.4.2.tgz#5b3ebdb72efbedfbd51e09bca6134248ad8ccad7" | ||
integrity sha512-sQLr0t6EmNFXpZHag0HQVtOKqF9xjF7iZdgWg3Ss1o7uh2QZLvcrz7S0Cl8M0d2TkPZ69JfPJdknXN3I0e/2aQ== | ||
dependencies: | ||
amator "^1.1.0" | ||
ngraph.events "^1.2.1" | ||
wheel "^1.0.0" | ||
|
||
param-case@^3.0.4: | ||
version "3.0.4" | ||
resolved "https://registry.yarnpkg.com/param-case/-/param-case-3.0.4.tgz#7d17fe4aa12bde34d4a77d91acfb6219caad01c5" | ||
|
@@ -11177,6 +11198,11 @@ whatwg-url@^5.0.0: | |
tr46 "~0.0.3" | ||
webidl-conversions "^3.0.0" | ||
|
||
wheel@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/wheel/-/wheel-1.0.0.tgz#6cf46e06a854181adb8649228077f8b0d5c574ce" | ||
integrity sha512-XiCMHibOiqalCQ+BaNSwRoZ9FDTAvOsXxGHXChBugewDj7HC8VBIER71dEOiRH1fSdLbRCQzngKTSiZ06ZQzeA== | ||
|
||
which-boxed-primitive@^1.0.2: | ||
version "1.0.2" | ||
resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" | ||
|