mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
LibWeb+UI/Qt: Display 'title' tooltips only when the mouse stops moving
Now instead of sending the position in which the user entered the tooltip area, send just the text, and let the chrome figure out how to display it. In the case of Qt, wait for 600 milliseconds of no mouse movement, then display it under the mouse cursor.
This commit is contained in:
parent
6623177265
commit
0f7623dd83
Notes:
sideshowbarker
2024-07-17 08:43:11 +09:00
Author: https://github.com/circl-lastname
Commit: 0f7623dd83
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/368
12 changed files with 34 additions and 21 deletions
|
@ -55,7 +55,7 @@ private:
|
|||
virtual void did_layout(u64 page_id, Gfx::IntSize) override;
|
||||
virtual void did_change_title(u64 page_id, ByteString const&) override;
|
||||
virtual void did_change_url(u64 page_id, URL::URL const&) override;
|
||||
virtual void did_enter_tooltip_area(u64 page_id, Gfx::IntPoint, ByteString const&) override;
|
||||
virtual void did_enter_tooltip_area(u64 page_id, ByteString const&) override;
|
||||
virtual void did_leave_tooltip_area(u64 page_id) override;
|
||||
virtual void did_hover_link(u64 page_id, URL::URL const&) override;
|
||||
virtual void did_unhover_link(u64 page_id) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue