Skip to content

Touch events not taken into account when both mouse and touch are available on device #1086

@jmvie5

Description

@jmvie5

Description:

On devices with multiple pointer devices (mouse and touch screen), the touch will not fire the MouseEvents (i.e. mousedown).

This is an issue for us when working with clients who use our web app with an interactive whiteboard connected to a computer. It seems like the computer's mouse is detected, but the touch events are not taken into account.

We experienced the same issue with a laptop with a touch screen; only mouse interactions worked, not touch screen interactions.

Reproduction:

Test Environment

If you have a laptop with a touch screen, click on the above link and try to manipulate the flowers with the touch screen. It does not work (at least on the machines I tested).

If you don't have a touchscreen laptop, open DevTools and use the simulate touch tool. Reloading the window with simulate touch enabled makes it work. However, if you first load the page without simulate touch and then switch to it without reloading the page, it does not work.

In the images, check the top right corners:

  1. (works)
Image 2. (Does not work, but will if you reload the page with this setting). Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions