mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Use PaintableBox::is_scrollable() while dispatching wheel event
With this change we use the same function to determine whether to render scroll thumb and whether box wants to accept scroll UI events.
This commit is contained in:
parent
a46c2a0887
commit
97066f09f4
Notes:
github-actions[bot]
2024-10-07 16:36:19 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 97066f09f4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1667
3 changed files with 2 additions and 13 deletions
|
@ -60,12 +60,6 @@ bool Box::is_scroll_container() const
|
|||
|| overflow_value_makes_box_a_scroll_container(computed_values().overflow_y());
|
||||
}
|
||||
|
||||
bool Box::is_user_scrollable() const
|
||||
{
|
||||
// FIXME: Support horizontal scroll as well (overflow-x)
|
||||
return computed_values().overflow_y() == CSS::Overflow::Scroll || computed_values().overflow_y() == CSS::Overflow::Auto;
|
||||
}
|
||||
|
||||
bool Box::is_body() const
|
||||
{
|
||||
return dom_node() && dom_node() == document().body();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue