I don't see how I can react to the pinch-to-zoom g...
# compose-desktop
s
I don't see how I can react to the pinch-to-zoom gesture on an Notebook touchpad. On Mac going up and down with two fingers is scrolling like mouse wheel. But how can I detect pinch-to-zoom? I looked at the imageviewer sample which uses
detectTransformGestures
. That works on my Android tablet, but does nothing on my MacBooks touchpad.
👀 4
k
Does a touchpad have any pinch-to-zoom functionality? I would've thought it would only be touch gestures on a touch screen that would pick that up. Be nice if you can do that, as it would help me out too! 🤩
s
Actually it only picks up touch gestures on real touch screens, but I think this method should really recognize the gestures on touchpads. Many apps support that, I'm used to this gesture and hate to see it's not working in my very own app.
k
Yep ok. So there are apps that currently detect gestures like that on a touchpad?
s
Yes, every browser and close to every photo app react to a pinch-to-zoom gesture on my Macs Trackpad
k
Wow!
s
Also Android Studio scales the font size (like mouse wheel does)
This gets more and more a common thing and should be supported.
k
It sure sounds handy!
👍 1
I guess there'd need to be HW specific drivers for it to work.
s
I think so. But since so many apps support it there must be some kind of common key event type (or something like that) all agreed to
Dunno the details
k
Hmm, OK. Interesting anyway!