mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Add pointer-events: all
This is basically the same as `auto` in the spec, so let's just treat them as identical for now. Gets rid of some Discord CSS parser spam. :^)
This commit is contained in:
parent
8aaab19e6b
commit
48c6cf92e3
Notes:
sideshowbarker
2024-07-17 19:38:34 +09:00
Author: https://github.com/AtkinsSJ
Commit: 48c6cf92e3
Pull-request: https://github.com/SerenityOS/serenity/pull/12349
4 changed files with 6 additions and 0 deletions
|
@ -200,6 +200,7 @@ bool EventHandler::handle_mousedown(const Gfx::IntPoint& position, unsigned butt
|
|||
return false;
|
||||
|
||||
auto pointer_events = result.layout_node->computed_values().pointer_events();
|
||||
// FIXME: Handle other values for pointer-events.
|
||||
if (pointer_events == CSS::PointerEvents::None)
|
||||
return false;
|
||||
|
||||
|
@ -335,6 +336,7 @@ bool EventHandler::handle_mousemove(const Gfx::IntPoint& position, unsigned butt
|
|||
}
|
||||
|
||||
auto pointer_events = result.layout_node->computed_values().pointer_events();
|
||||
// FIXME: Handle other values for pointer-events.
|
||||
if (pointer_events == CSS::PointerEvents::None)
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue