pixi-viewport icon indicating copy to clipboard operation
pixi-viewport copied to clipboard

Desktop Safari pinch() bugged

Open akasandra opened this issue 6 years ago • 3 comments

With sample code from here: https://davidfig.github.io/pixi-viewport/jsdoc/

With Mobile Safari, everything is fine (like every other browser). Although Desktop Safari is bugged (tested on latest 12.0.2). If you zoom in and zoom out the same region (with mac touchpad) for a few times, what you see is "damaged" render of that region (image is "blurring"). You have to fire Command+0 to reset zoom (View -> Actual Size).

.pinch() thing actually seem to work in parallel with native browser zoom.

Anyone acknowledged of this situation? Any workarounds?

can't find a way to make a jsfiddle quickly, sorry

akasandra avatar Jan 23 '19 13:01 akasandra

Yup. Safari uses the non-standard Gesture API to handle pinches on the trackpad. Sigh. I'm working on adding support for this.

davidfig avatar Jan 24 '19 01:01 davidfig

If anyone else is running into this need, we just open-sourced https://github.com/ca-la/pixi-viewport-gesture-pinch as a lightweight solution. Thanks for all your hard work on this @davidfig!

dylanpyle avatar Oct 03 '19 19:10 dylanpyle

Cool. I'll take a look at the code and see if I can incorporate it into pixi-viewport. I have need of this for my current project so the work should be done over the next couple of weeks.

davidfig avatar Oct 06 '19 02:10 davidfig