mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
Fix overlay always staying on on touch devices
This commit is contained in:
parent
9cb694d65b
commit
08cc5260bd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue