Re: [w3c/uievents] mousemove and preventDefault() (#278)

> We at Mozilla found that this is not web compatible since [jQuery Mobile calls MouseEvent#preventDefault() on desktop browsers without expecting mousemove](https://github.com/jquery/jquery-mobile/issues/8670). We had to [restore our previous behavior](https://bugzilla.mozilla.org/show_bug.cgi?id=1674658#c15) after getting regression reports.

I got confused with this today after seeing that the WPT is [passing](https://wpt.fyi/results/uievents/mouse/mousemove_prevent_default_action.tentative.html?label=master&label=experimental&aligned) in Chrome!  I think this is because the test ends too early before catching the Chrome problem.  Before I land [the change](https://chromium-review.googlesource.com/c/chromium/src/+/4081610), I wanted to double-check: @saschanaz you meant Mozilla now ignores `mosuemove` cancellation again, is this correct?

> We should probably prefer selectionchange event for this purpose and make mousemove not cancelable.

Unfortunately, the `selectionchange` event is [not cancelable](https://w3c.github.io/selection-api/#dfn-selectionchange)!  And I don't see any other candidate event that can possibly allow suppressing selection-extension.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/issues/278#issuecomment-1339991596
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/uievents/issues/278/1339991596@github.com>

Received on Tuesday, 6 December 2022 20:52:53 UTC