I can not get the pinch to zoom gesture working us...
# compose
a
I can not get the pinch to zoom gesture working using my Macbook touchpad. I tried imageviewer example that uses
detectTransformGestures
Is it not yet supported?
👀 1
e
Compose Desktop use Swing to create windows and get input, and Swing doesn't support multitouch gestures, so I wouldn't expect it to work in Compose Desktop either
a
I tested it on both desktop and web/wasm.
m
That’s true. I just tried it with my macMini and attached trackpad. Pinch gestures don’t work with Compose but work nicely in a JavaFX application. That’s a pity. Maybe Compose could borrow some code from JavaFX.
m
I voted for them 👍.
🙌 1
e
I don't think there's any way to just "borrow" code from JavaFX, the actual implementation is in the native integration
maybe Compose could learn to use JavaFX for input
as for wasm/web, I don't know… I haven't looked, maybe CMP isn't using the pointer events API (or its behavior is inconsistent between browsers)