Skip to content

mousemove_prevent_default_action.tentative.html checks the event sequence of mousemove and dragstart events #396

@EdgarChen

Description

@EdgarChen

Test List

https://wpt.fyi/results/uievents/mouse/mousemove_prevent_default_action.tentative.html?label=master&label=experimental&aligned

Rationale

This test was added for w3c/pointerevents#638. There are discussions on whether calling preventDefault on mousemove should prevent selectionchange. And we all agreed that it should not. The issue didn't mention drag operation, but if the mousemove event can not be canceled, I think it makes sense that the principle should apply to drag operation (?).

However, this test also tests the sequence of mousemove and dragstart events. It expects the mousemove event fired first then dragstart event, but in Gecko, we dispatch dragstart event first then mousemove event. I don't think spec has clear definition about the timing of firing the dragstart event. Therefore, I think the ordering-check is beyond the intent of this test. WDYT?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions