Carousel: Fix Fullscreen opening when swiping
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -54,9 +54,9 @@
|
|||||||
// Dispatch current photo
|
// Dispatch current photo
|
||||||
dispatch('photoChange', photos[currentIndex])
|
dispatch('photoChange', photos[currentIndex])
|
||||||
// Reset fullscreen value if open
|
// Reset fullscreen value if open
|
||||||
if ($fullscreen) fullscreen.set()
|
fullscreen.set()
|
||||||
// Reset swiped event if fired
|
// Reset swiped event if fired
|
||||||
swiped = false
|
requestAnimationFrame(() => swiped = false)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hover on controls
|
// Hover on controls
|
||||||
|
|||||||
Reference in New Issue
Block a user