You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Glutin translates touch input on Android into mouse events. Upstream Glutin master has a touch event API, but this isn't yet used in the Android port.
We could easily change Servo's android port to make "mouse" movement scroll the page instead of sending DOM mouse events, but this would break the demos that use mousemove events for other purposes.
To make touch input usable for both scrolling and DOM events, we need to implement the Touch Events DOM API, and cancel scrolling if the web page calls preventDefault on the "touchstart" or "touchmove" event.
If a temporary hack is needed for demo purposes, we could also provide a way for a web page to opt out of touch scrolling, for example by implementing a tiny subset of the 'touch-action' CSS property.
Activity
[-]Touch events no longer work on Android[/-][+]Scrolling is broken on Android[/+]mbrubeck commentedon Aug 10, 2015
Glutin translates touch input on Android into mouse events. Upstream Glutin master has a touch event API, but this isn't yet used in the Android port.
We could easily change Servo's android port to make "mouse" movement scroll the page instead of sending DOM mouse events, but this would break the demos that use mousemove events for other purposes.
To make touch input usable for both scrolling and DOM events, we need to implement the Touch Events DOM API, and cancel scrolling if the web page calls preventDefault on the "touchstart" or "touchmove" event.
mbrubeck commentedon Aug 10, 2015
If a temporary hack is needed for demo purposes, we could also provide a way for a web page to opt out of touch scrolling, for example by implementing a tiny subset of the 'touch-action' CSS property.
mbrubeck commentedon Aug 12, 2015
I started working on basic touch event support at https://github.com/mbrubeck/servo/commits/touchevent
waddlesplash commentedon Oct 23, 2015
#7204 was merged.