Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[Video] Remove hack from scrubber (#5063)

* remove mouseleave, add pointer cancel

* don't show time indicator if duration is 0

authored by

Samuel Newman and committed by
GitHub
17d82a64 bf15fad2

+3 -15
+3 -15
src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx
··· 253 253 style={a.flex_1} 254 254 onPress={onPressEmptySpace} 255 255 /> 256 - {active && !showControls && !focused && ( 256 + {active && !showControls && !focused && duration > 0 && ( 257 257 <TimeIndicator time={Math.floor(duration - currentTime)} /> 258 258 )} 259 259 <View ··· 475 475 if (isFirefox && scrubberActive) { 476 476 document.body.classList.add('force-no-clicks') 477 477 478 - const abortController = new AbortController() 479 - const {signal} = abortController 480 - document.documentElement.addEventListener( 481 - 'mouseleave', 482 - () => { 483 - isSeekingRef.current = false 484 - onSeekEnd() 485 - setScrubberActive(false) 486 - }, 487 - {signal}, 488 - ) 489 - 490 478 return () => { 491 479 document.body.classList.remove('force-no-clicks') 492 - abortController.abort() 493 480 } 494 481 } 495 482 }, [scrubberActive, onSeekEnd]) ··· 548 535 }} 549 536 onPointerDown={onPointerDown} 550 537 onPointerMove={onPointerMove} 551 - onPointerUp={onPointerUp}> 538 + onPointerUp={onPointerUp} 539 + onPointerCancel={onPointerUp}> 552 540 <View 553 541 style={[ 554 542 a.w_full,