8000 Transformation via style attribute possibly causing performance issues in iOS · Issue #224 · bumbu/svg-pan-zoom · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Transformation via style attribute possibly causing performance issues in iOS #224
Closed
@davidrapson

Description

@davidrapson

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

  1. Panning large SVG
  2. Panning handled using Hammer.js
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0