timmywil / panzoom

A library for panning and zooming elements using CSS transforms :mag:
https://timmywil.com/panzoom/
MIT License
2.14k stars 416 forks source link

Pointer-events on Safari #631

Open VillePakarinenPosti opened 1 year ago

VillePakarinenPosti commented 1 year ago

Describe the bug

I was fiddling around with the panzoom demo at: https://timmywil.com/panzoom/demo/ and noticed that using 3-fingers within panzoom element causes quite a lot of layout-shift.

Your environment

Expected behavior

I'm not sure what should happen while panning with three fingers but iOS opens undo menu. Eg: https://developer.apple.com/forums/thread/714425

Steps to reproduce

  1. Open: https://timmywil.com/panzoom/demo/
  2. Choose any of the demos.
  3. Touch screen with 3 fingers
  4. Demo tiger will flicker and might disappear from the view
timmywil commented 1 year ago

Good catch. There are a few possible fixes and I'm not sure the best one.

howfar9595 commented 1 year ago

hello, will this be resolved?Make the drag bounded。thanks