Closed
Description
Expected behaviour
Smooth panning on iOS
Actual behaviour
Noticeable lag when panning on iOS
Description
I've been experiencing some issues with performance when panning large SVGs in iOS since the switch to applying transforms via the style attribute
This issue sounds like it could be (possibly) related to #223.
Steps to reproduce the behaviour
- Panning large SVG
- Panning handled using Hammer.js
- On iOS using svg-pan-zoom version
3.2.7
and above panning becomes laggy
Configuration
- svg-pan-zoom version:
3.2.9
- Browser(s):
Safari
- Operating system(s):
iOS 10
Current Solution
I've currently resolved this by downgrading to 3.2.6
.
It's worth noting that this is most noticeable for large SVGs so a possible solution could be a flag to opt-out of style attribute transforms.
Next steps
I can create a reduced test case to demonstrate this. Would you prefer that I close this issue and re-open when I'm able to provide a demo of the issue? Whatever is best for you.