mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +00:00
LibWeb: Fix calculation of MouseEvent::client_{x,y}
MouseEvent.client{X,Y} should be relative to the viewport.
This commit is contained in:
parent
3dccee6025
commit
66ee08c3dc
Notes:
sideshowbarker
2024-07-17 02:22:27 +09:00
Author: https://github.com/itamar8910
Commit: 66ee08c3dc
Pull-request: https://github.com/SerenityOS/serenity/pull/16742
2 changed files with 19 additions and 5 deletions
|
@ -41,6 +41,7 @@ private:
|
|||
bool focus_previous_element();
|
||||
|
||||
bool fire_keyboard_event(FlyString const& event_name, HTML::BrowsingContext& browsing_context, KeyCode key, unsigned modifiers, u32 code_point);
|
||||
CSSPixelPoint compute_mouse_event_client_offset(CSSPixelPoint event_page_position) const;
|
||||
|
||||
Layout::InitialContainingBlock* layout_root();
|
||||
Layout::InitialContainingBlock const* layout_root() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue