- From: Mustaq Ahmed via GitHub <sysbot+gh@w3.org>
- Date: Mon, 25 Nov 2024 22:52:55 +0000
- To: public-pointer-events@w3.org
mustaqahmed has just created a new issue for https://github.com/w3c/pointerevents: == Mouse and Pointer events from a stationary mouse == Forking off from #457 to highlight my question there: If the mouse is held stationary, do we expect to see CSS hover effect and pointer/mouse events after a touch/wheel scroll ends? There are important differences between major browsers here: - [Repro for top frame](https://mustaqahmed.github.io/web/interop/event-from-non-moving-mouse.html): - After a short delay, Chrome fires pointer/mouse over/out events and no move event, and shows hover effect. - After a short delay, Firefox fires mouseover/out events only, and shows hover effect. - Safari fires no events, and shows hover effect. - [Repro for sub-frame](https://codepen.io/mustaqahmed/full/pvzzxbe): - Chrome fires no events, and shows no hover effect. - After a short delay, Firefox fires mouseover/out events only, and shows hover effect. - [TODO]: need to check. I think it is important to fire some events to let the developers know when the hover-effect is shown, and in that case both pointer and mouse over/out events need to be fired for consistency between these two classes of events, like what Chrome does. But to be frank, I got confused upon discovering Chrome's subframe behavior above! --- The PointerEvents spec expects no event in this case, but the UIEvent spec expects mouse events! Related WPTs: [pointerevents/pointerevent_pointerout_no_pointer_movement.html](https://wpt.fyi/results/pointerevents/pointerevent_pointerout_no_pointer_movement.html?label=master&label=experimental&aligned) and [uievents/mouse/layout_change_should_fire_mouseover.html](https://wpt.fyi/results/uievents/mouse/layout_change_should_fire_mouseover.html?label=master&label=experimental&aligned) Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/529 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 25 November 2024 22:52:56 UTC