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:
Aliaksandr Kalenik 2024-10-07 17:50:35 +02:00 committed by Alexander Kalenik
commit 97066f09f4
Notes: github-actions[bot] 2024-10-07 16:36:19 +00:00
3 changed files with 2 additions and 13 deletions

View file

@ -52,8 +52,6 @@ public:
bool is_scroll_container() const;
bool is_user_scrollable() const;
void add_contained_abspos_child(JS::NonnullGCPtr<Node> child) { m_contained_abspos_children.append(child); }
void clear_contained_abspos_children() { m_contained_abspos_children.clear(); }
Vector<JS::NonnullGCPtr<Node>> const& contained_abspos_children() const { return m_contained_abspos_children; }