mirror of
https://github.com/movie-web/movie-web.git
synced 2025-09-13 13:33:25 +00:00
Fix overlay always staying on on touch devices
This commit is contained in:
@@ -17,7 +17,7 @@ export function useShouldShowControls() {
|
||||
|
||||
// when using touch, pause screens can be dismissed by tapping
|
||||
const showTargetsWithoutPause =
|
||||
isHovering || isHoveringControls || hasOpenOverlay;
|
||||
isHovering || (isHoveringControls && !isUsingTouch) || hasOpenOverlay;
|
||||
const showTargetsIncludingPause = showTargetsWithoutPause || isPaused;
|
||||
const showTargets = isUsingTouch
|
||||
? showTargetsWithoutPause
|
||||
|
Reference in New Issue
Block a user