react-zoom-pan-pinch icon indicating copy to clipboard operation
react-zoom-pan-pinch copied to clipboard

Cannot pan with 2-finger gesture when using mac

Open GiorgosPap opened this issue 4 years ago • 12 comments

Hello guys, thanks for the awesome library!

I am trying to pan on Chrome using Mac's 2-finger gesture (Force Touch trackpad, MacBook Pro Early 2015), but no luck. The current behaviour zooms in /out which is wrong.

Even the documentation says that the touchPadEnabled is true by default, I added it manually but again no luck. It zooms in/out.

Has anybody got an idea of what I should put on the TransformWrapper's options?

Thank you

GiorgosPap avatar May 21 '20 13:05 GiorgosPap

Any updates on this?

softmarshmallow avatar Nov 23 '20 03:11 softmarshmallow

@prc5

softmarshmallow avatar Nov 23 '20 03:11 softmarshmallow

bump

ItayElgazar avatar Dec 25 '20 22:12 ItayElgazar

PInch to zoom also doesn't work in safari, I'm looking to fix these 2 issues now for a project in work 🤔 If it means having to update this lib I'll open up a PR with my changes :) (ah I see your issue has already had a PR made for it, will probably base my work off that PR then)

pederjohnsen avatar Jan 18 '21 13:01 pederjohnsen

+1 This feature would be incredibly helpful

farukparhat avatar Jul 13 '21 01:07 farukparhat

@prc5 any update on this one? Two finger to pan is a big request right now and it looks like the infrastructure is there but not hooked up (i.e onTouchPanning and touchPadDisabled).

farukparhat avatar Sep 01 '21 02:09 farukparhat

Are there any updates on this?

finnatsea avatar Dec 14 '21 04:12 finnatsea

I'm using use-gesture and I'm going to stick with it. works well.

https://user-images.githubusercontent.com/16307013/146176837-60eef0bc-f755-490e-86d0-5ec2647fbbad.mov

Code: https://github.com/gridaco/designto-code

softmarshmallow avatar Dec 15 '21 11:12 softmarshmallow

@softmarshmallow Are you only using use-gesture or are using it together with react-zoom-pan-pinch?

joeyparis avatar Dec 30 '21 22:12 joeyparis

@prc5 hey there 👋 any way to add this feature in? I'm using the library and it does pretty much all I need except for panning with the trackpad. I'd be happy to look into the code and do PR if someone provided some guidance. Thank you

bytasv avatar Jun 27 '22 05:06 bytasv