Skip to content

Scrolling is broken on Android #7036

Closed
Closed

Description

@larsbergstrom

I saw clicking on a link work once, but scrolling and pinch-zoom appear to be non-functional.

Activity

  1. changed the title [-]Touch events no longer work on Android[/-] [+]Scrolling is broken on Android[/+] on Aug 10, 2015
  2. added
    I-bustage
    on Aug 10, 2015
  3. mbrubeck commented on Aug 10, 2015

    @mbrubeck
    Contributor

    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.

  4. mbrubeck commented on Aug 10, 2015

    @mbrubeck
    Contributor

    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.

  5. self-assigned this
    on Aug 12, 2015
  6. mbrubeck commented on Aug 12, 2015

    @mbrubeck
    Contributor
  7. waddlesplash commented on Oct 23, 2015

    @waddlesplash

    #7204 was merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

I-bustageP-android

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions