4 ms·
Is it yet possible to disable the pinch / zoom for the web on the ipad? Can you force users to scroll the page with 2 fingers instead of 1?
by mikegioia 14y ago
Is it yet possible to disable the pinch / zoom for the web on the ipad? Can you force users to scroll the page with 2 fingers instead of 1?
- spion 14y agoYes and no. There is some not-so-pretty trickery involved on both the native side and the JS side. We have an invisible layer on top of the browser on the native side, and call the JS code which generates the appropriate events and scrolls the appropriate elements.
- mikegioia 14y agoSo, a new layer above javascript and below the browser?
- spion 14y agoYup, events never actually reach the browser. They are received by the invisible layer and then sent to some JS code (which is injected into the page). Thats why you need to double-tap to edit text fields or upload a photo - we can't make text boxes enter editing mode or initiate image upload via JS (the second is disabled because of security issues) so we need to temporarily disable the layer when you attempt that.