LibWeb: Return whether handle_mousewheel was handled

We try scrolling a Node with the handle_mousewheel event, but if it
isn't scrollable, the event should be passed back up to the page
host. This is the first step in that process.
This commit is contained in:
Angus Gibson 2021-03-02 08:36:58 +11:00 committed by Andreas Kling
commit e9c1d9c89a
Notes: sideshowbarker 2024-07-18 21:46:39 +09:00
5 changed files with 13 additions and 7 deletions

View file

@ -60,7 +60,7 @@ public:
private:
virtual bool is_block_box() const final { return true; }
virtual bool wants_mouse_events() const override { return true; }
virtual void handle_mousewheel(Badge<EventHandler>, const Gfx::IntPoint&, unsigned buttons, unsigned modifiers, int wheel_delta) override;
virtual bool handle_mousewheel(Badge<EventHandler>, const Gfx::IntPoint&, unsigned buttons, unsigned modifiers, int wheel_delta) override;
bool should_clip_overflow() const;