mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 15:43:20 +00:00
LibWeb+UI: Add an explicit IPC to handle mouse leave events
The faux position we created here is adjusted by the device pixel ratio later on, which would invoke integer overflow on screens with a DPR greater than 1. Instead of creating special data for a mouse move event, let's just add an explicit leave event handler.
This commit is contained in:
parent
8600925713
commit
67cc02ab59
Notes:
github-actions[bot]
2025-07-28 19:27:37 +00:00
Author: https://github.com/trflynn89
Commit: 67cc02ab59
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5628
11 changed files with 66 additions and 7 deletions
|
@ -301,6 +301,7 @@ private:
|
|||
virtual DispatchEventOfSameName handle_mousedown(Badge<EventHandler>, CSSPixelPoint, unsigned button, unsigned modifiers) override;
|
||||
virtual DispatchEventOfSameName handle_mouseup(Badge<EventHandler>, CSSPixelPoint, unsigned button, unsigned modifiers) override;
|
||||
virtual DispatchEventOfSameName handle_mousemove(Badge<EventHandler>, CSSPixelPoint, unsigned buttons, unsigned modifiers) override;
|
||||
virtual void handle_mouseleave(Badge<EventHandler>) override;
|
||||
|
||||
bool scrollbar_contains_mouse_position(ScrollDirection, CSSPixelPoint);
|
||||
void scroll_to_mouse_position(CSSPixelPoint);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue