mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +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:
committed by
Linus Groh
parent
ad3c63684c
commit
c403f8e92c
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user