Commit Graph

3 Commits

Author SHA1 Message Date
Matt Van Horn
5c25bef2d0 LibWeb: Use editor's draft URL for button property spec reference
Update both spec links to the Pointer Events editor's draft which
explicitly documents the -1 return for MouseButton::None.
2026-03-17 08:07:56 +01:00
Matt Van Horn
37da47436c LibWeb: Handle MouseButton::None in mouse_button_to_button_code()
When mouse buttons 6 or higher are double-clicked, the Qt and AppKit
frontends map them to MouseButton::None. This value then reaches
mouse_button_to_button_code() via create_from_platform_event(), where
the default case calls VERIFY_NOT_REACHED() and crashes.

Return -1 for MouseButton::None, which per the W3C UIEvents spec
indicates no button is associated with the event.
2026-03-17 08:07:56 +01:00
Timothy Flynn
93712b24bf Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00