Commit 67683dc
committed
HoverTime: fix redraw problem across unknown duration
When duration went to 0 and then came back with the same value it had
previously (e.g. playing the same video twice in a row), the time
would change to ???? and not change back to a timestamp until the
mouse was moved. This happened because the computed hover timestamp
did not get updated during the portion of unknown duration, so the
value was cached too aggressively.
By decoupling the positioning logic from the timestamp logic, the
intent becomes more obvious and hopefully less bug-prone.1 parent 7459d8a commit 67683dc
1 file changed
Lines changed: 25 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
43 | 59 | | |
44 | 60 | | |
45 | 61 | | |
46 | 62 | | |
47 | 63 | | |
| 64 | + | |
48 | 65 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 66 | + | |
53 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
54 | 73 | | |
55 | 74 | | |
56 | | - | |
| 75 | + | |
57 | 76 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 77 | + | |
64 | 78 | | |
65 | 79 | | |
0 commit comments