Skip to content

Pointer events #15

Closed
Closed

Description

@flackr

Description
The pointerevents spec provides a unified input model for handling pointing devices regardless of their type (e.g. mouse, touch, stylus) and contains many new capabilities to these events such as predicted points and pointer capture.

Specification
https://w3c.github.io/pointerevents/

Tests
Links to web-platform-tests (on https://wpt.fyi) for the feature:
https://wpt.fyi/results/pointerevents?label=master&label=experimental&aligned

Rationale
The pointerevents spec is where new input features are arriving and developers using pointerevents instead of mouse or touch event listeners improves usability across input modalities. Additionally, using touch-action and passive event listeners improves scrolling performance. However, differences in behavior can lead to adoption or usability issues.

Activity

  1. jgraham commented on Nov 11, 2021

    @jgraham
    Contributor
  2. gsnedders commented on Nov 11, 2021

    @gsnedders
    Member

    Note that Safari doesn't support touch events on macOS (the only platform on wpt.fyi), because macOS doesn't support touch input, as such I think we'd be opposed to including the touch action tests in this bracket. (Not making any statement about the inclusion of the rest of pointer events, just noting that there is that limitation.)

  3. eugenegirard commented on Nov 11, 2021

    @eugenegirard

    Wouldn't touch action tests get ignored for MacOS then?

  4. flackr commented on Nov 11, 2021

    @flackr
    Author

    Currently they result in failures, but it could be a good goal to update the tests so that lack of touch support on the platform skips the tests.

  5. added
    requires:test-infra
    on Nov 18, 2021
  6. foolip commented on Nov 22, 2021

    @foolip
    Member

    Looking at https://wpt.fyi/results/pointerevents?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned, some touch tests are easy to exclude, like any that have "touch" in the test name.

    More problematic are any tests that use touch but don't strictly have to. In particular, test using touchScrollInTarget would perhaps make sense for wheel-induced scrolling, but I can't find any tests involving "wheel" in pointerevents/. Judging by https://wpt.fyi/results/webdriver/tests/perform_actions/wheel.py?run_id=5675562627497984&run_id=5653017203310592&run_id=5670493089693696 it doesn't work in geckodriver of safaridriver yet.

    @flackr would you be able to make a list of tests that would work without touch support, and see if that's still enough to be useful?

  7. flackr commented on Nov 23, 2021

    @flackr
    Author

    @mustaqahmed Do you think you could help with this?

  8. gsnedders commented on Nov 29, 2021

    @gsnedders
    Member

    Looking at https://wpt.fyi/results/pointerevents/idlharness.window.html?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned&q=%21touch%20%21pen (i.e., excluding both touch and pen) we see much more green than the overall summary. Looking at idlharness:

    • altitudeAngle/azimuthAngle is unsupported in Gecko/WebKit
    • getCoalescedEvents/getPredictedEvents is unsupported in WebKit
    • onpointerrawupdate is unsupported in Gecko/WebKit

    Of the above query, it seems that:

    • 37 subtests fail in all browsers
    • 601 subtests fail in two
    • 230 subtests fail in one
    • 979 subtests pass in all

    Given that, I guess the question in part becomes "do we want to exclude any tests/features that fail in two browsers?".

  9. foolip commented on Dec 10, 2021

    @foolip
    Member

    Per #39 (comment) we won't include this in Interop 2022, but before closing it we should figure out if there's something here we want to work jointly on in 2022.

    @gsnedders can you elaborate on "WPT coverage does not seem representative of site compatibility bugs"? What kinds of site compat issues you tend to see with Pointer Events? Perhaps focusing on those aspects would put this in better shape for Interop 2023.

  10. gsnedders commented on Dec 16, 2021

    @gsnedders
    Member

    @gsnedders can you elaborate on "WPT coverage does not seem representative of site compatibility bugs"? What kinds of site compat issues you tend to see with Pointer Events? Perhaps focusing on those aspects would put this in better shape for Interop 2023.

    Looking at bugs.webkit.org shows a variety of issues; these are:

    1. Mostly touch related issues, which we don't have test coverage for WebKit on wpt.fyi due to lack of any sort of touch input on macOS, and therefore not in Safari either,
    2. Related to browser features (like drag-to-scroll) which I don't think Pointer Events really covers?
  11. karlcow commented on Dec 17, 2021

    @karlcow
  12. jgraham commented on Dec 17, 2021

    @jgraham
    Contributor

    Is this something where a different WebKit port might enable the feature on desktop, and provide a useful proxy for iOS Safari? Or is there a lot of port-specific code?

  13. added
    focus-area-proposal
    and removed on Sep 16, 2022
  14. added this to the Interop 2022 milestone on Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    focus-area-proposalrequires:test-infra

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions