Releases: bumbu/svg-pan-zoom
v3.6.1 Update deps. Use Prettier.
v3.6.0 Passive mouse events listeners
Now mouse events listeners are passive when preventEventsDefaults: false
.
This should help with performance in SVGs with lots of elements.
v3.5.2 Better handling of multitouch panning
- Now when panning using multiple fingers, only first touch is considered - this way you don't get the jiggle. Thank to @KoenkookpotPlasmans for that!
v3.5.1 Small fixes
- Update typescript testing
- Fix scope leak in
_removeWheelListener
(uniwheel.js) - Prevent pan event if before pan made is unnecessary
Thank you to @Yimiprod, @jci-jnewell and @smargovsky for descriptive issues and contributions!
v3.5.0
- Added
onUpdatedCTM
callback that is fired when SVG's pan and zoom updates are rendered - Now if an action triggers both
onPan
andonZoom
- they're called in that order and can be canceled/mutated as when they were happening separately. This makes the behaviour consistent - Some fixes and updates to the typings
v3.4.1 Update ts definitions
Merge pull request #230 from ariutta/fix-typescript fix: typescript definition, add getSizes
v3.4.0 Update viewBox cache on resize
Now resize method should behave in a more expected manner. See #185
This may be a breaking change for some apps that are relying on some constraints to be maintained when calling resize
. Old behavior was wrong.
There were 2 solutions to this issue:
- destroying and reinitializing the plugin
- dynamically updating the constraints (min/max)
The number of affected apps should be minimal. Those apps could stay on 3.3.x until they'll be able to update.
v3.3.0 Use real x and y viewBox values on updateBBox
This may be a breaking change for some apps that are updating elements on the fly that change the viewBox x and y positioning. Old behavior was wrong. The only solution prior this version was to destroy and reinitialize the plugin.
The number of affected apps should be minimal. Those apps could stay on 3.2.x until they'll be able to update.
V3.2.11 Don't add multiple style elements
Thanks to @steffenkuche for the #221
v3.2.10 Fix double click
Fixes double click when clicking in different places