Commit Graph

6 Commits

Author SHA1 Message Date
tomasklaen
a0b18eabec fix: uncalled for autohide timer triggering on init 2023-04-10 22:24:13 +02:00
Tomas Klaen
f635df18f7 refactor: cursor events consolidated into one interface (#483)
`mbtn_left` and `wheel` events are now only fired on a `cursor.on_{event}` object, which resets at the beginning of each frame, so elements need to bind these listeners in their render functions. These properties are overwritable which allows elements to take over cursor event handling from their parents if necessary.
2023-03-29 09:08:18 +02:00
christoph-heinrich
5a02c6d205 fix: touch input (#412)
`mouse-pos.hover` may or may not be false during touch input
(contrary to mouse input, where false means the cursor left the window)

Detecting a change to false as a leave event, while allowing any
other mouse-pos update to cause an enter event solves this.
2023-01-02 08:51:49 +01:00
tomasklaen
edf2502535 fix: proximity visibility not being reset when toggling elements off
ref #391
2022-12-17 10:50:05 +01:00
tomasklaen
6b2476bace feat: allow clicking timeline chapter indicators
I don't like this solution, but anything cleaner would probably require converting chapter indicators into individual elements and than managing/updating their positions and sizes in relation to growing timeline, which seems like a lot more work and code, so this'll have to suffice.

closes #370
2022-11-16 15:23:44 +01:00
tomasklaen
4399904bba refactor: change directory structure to support mpv 0.32 and lower 2022-10-27 12:09:59 +02:00