mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
LibWeb: Move mouse wheel handling from Paintable to PaintableBox
It is only PaintableBox that can have scrollable overflow so it doesn't make sense to have handle_mousewheel() implementation in Paintable. Also new implementation of handle_mousewheel() takes in account overflow limits from scrollable_overflow_rect().
This commit is contained in:
parent
55b5c61a79
commit
c7673605bb
3 changed files with 10 additions and 17 deletions
|
@ -126,6 +126,8 @@ public:
|
|||
|
||||
virtual Optional<HitTestResult> hit_test(CSSPixelPoint, HitTestType) const override;
|
||||
|
||||
virtual bool handle_mousewheel(Badge<EventHandler>, CSSPixelPoint, unsigned buttons, unsigned modifiers, int wheel_delta_x, int wheel_delta_y) override;
|
||||
|
||||
void invalidate_stacking_context();
|
||||
|
||||
bool is_out_of_view(PaintContext&) const;
|
||||
|
@ -235,7 +237,6 @@ public:
|
|||
|
||||
virtual void paint(PaintContext&, PaintPhase) const override;
|
||||
virtual bool wants_mouse_events() const override { return false; }
|
||||
virtual bool handle_mousewheel(Badge<EventHandler>, CSSPixelPoint, unsigned buttons, unsigned modifiers, int wheel_delta_x, int wheel_delta_y) override;
|
||||
|
||||
virtual Optional<HitTestResult> hit_test(CSSPixelPoint, HitTestType) const override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue