mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Update the media playback time for clicks on the media timeline
When clicking on the media timeline, compute the percentage along the timeline's width the user clicked, and set the playback time to the same percentage of the video's duration.
This commit is contained in:
parent
ad3c63684c
commit
c403f8e92c
Notes:
sideshowbarker
2024-07-17 10:08:28 +09:00
Author: https://github.com/trflynn89
Commit: c403f8e92c
Pull-request: https://github.com/SerenityOS/serenity/pull/18296
Reviewed-by: https://github.com/Zaggy1024 ✅
2 changed files with 12 additions and 0 deletions
|
@ -39,6 +39,7 @@ public:
|
|||
struct CachedLayoutBoxes {
|
||||
Optional<CSSPixelRect> control_box_rect;
|
||||
Optional<CSSPixelRect> playback_button_rect;
|
||||
Optional<CSSPixelRect> timeline_rect;
|
||||
};
|
||||
CachedLayoutBoxes& cached_layout_boxes(Badge<Painting::VideoPaintable>) const { return m_layout_boxes; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue