mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 14:05:08 +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
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