Skip to content

Commit cf2875d

Browse files
committed
Fix unzoom not working properly in Edge
There seems to be a problem with nested transitions in Edge - when the wrapper translates, the image's scale transition gets cancelled. Due to this, the `transitionend` event doesn't get fired, causing `dispose` to not be called. This fixes the issue by attaching events to the wrapper's `transitionend`, which does get called. CodePen: https://codepen.io/spinningarrow/pen/EEJwzN SO: https://stackoverflow.com/q/49799116/342886
1 parent 6e0bd05 commit cf2875d

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

dist/zoom-vanilla.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/zoom-vanilla.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)