Skip to content

Commit 9b534b9

Browse files
authored
[Video] add scrubber to the web player (#4943)
1 parent def9dda commit 9b534b9

File tree

4 files changed

+392
-114
lines changed

4 files changed

+392
-114
lines changed

bskyweb/templates/base.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,11 @@
253253
from { opacity: 1; }
254254
to { opacity: 0; }
255255
}
256+
257+
.force-no-clicks > *,
258+
.force-no-clicks * {
259+
pointer-events: none !important;
260+
}
256261
</style>
257262
</style>
258263
{% include "scripts.html" %}

src/components/hooks/useInteractionState.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ export function useInteractionState() {
55

66
const onIn = React.useCallback(() => {
77
setState(true)
8-
}, [setState])
8+
}, [])
99
const onOut = React.useCallback(() => {
1010
setState(false)
11-
}, [setState])
11+
}, [])
1212

1313
return React.useMemo(
1414
() => ({

0 commit comments

Comments
 (0)