3 ms·
Yes 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 nativ
by spion 14y ago
Yes 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.