react-zoom-pan-pinch
react-zoom-pan-pinch copied to clipboard
Cannot pan with 2-finger gesture when using mac
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
Any updates on this?
@prc5
bump
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)
+1 This feature would be incredibly helpful
@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
).
Are there any updates on this?
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 Are you only using use-gesture or are using it together with react-zoom-pan-pinch?
@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