📜 ⬆️ ⬇️

Multitouch under Firefox

As you know, the Firefox browser now supports multitouch in a primitive form - some gestures with three or two fingers to zoom the page or scroll. But the Brazilian programmer Felipe Gomez, one of the developers of the Mozilla project, implemented something more, namely support for a full-fledged multitouch for objects on any, most ordinary web page. Exactly the same multitouch, as in the Apple iPhone.

Information from the touchscreen to the web page is transmitted via DOM Events (MozTouchDown, MozTouchMove and MozTouchRelease).


')
If you implement these APIs, it will be possible to scale objects with two fingers on the screen in the browser, again cut out fragments of photos with two fingers, draw with your finger and run games like Ping-pong for Firefox (two-person control). All of the above examples are illustrated with screenshots under Habrakat, as well as in the video.



All examples are regular web pages. Objects have added markers that show sensory points that need to be touched to manipulate objects.









The snippet code, as well as the proposed APIs, can be explored on the developer’s page

Source: https://habr.com/ru/post/67926/


All Articles