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
743
Jun ’21
Disable Scribble in Website
I see that UIScribbleInteractionDelegate has scribbleInteraction(_:shouldBeginAt:) that you can always return false from in order to disable scribble. Is there any way to disable it in a website via javascript or dom attributes?
Replies
2
Boosts
1
Views
1.1k
Activity
Dec ’24
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?
Replies
0
Boosts
0
Views
743
Activity
Jun ’21