Post

Replies

Boosts

Views

Activity

Website detect Magic Trackpad pinch on iPad
I am working on a website where we want to use the pinch gesture on your trackpad to zoom a canvas. If the user pinches the screen, I can use the PointerEvents to handle the pinch-zoom gesture. On a Mac, I use the wheel event. But on an iPad Pro with the Magic Keyboard(+trackpad) attached, if you pinch on the trackpad there's no way to detect it in the webpage. No Touch/PointerEvents are generated, and it just zooms the page in, even though we have user-scalable=no in the head. How can i detect this event, and how can i prevent it from scaling the webpage?
0
0
697
Jun ’21