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('photoChange', photos[currentIndex])
|
||||
// Reset fullscreen value if open
|
||||
if ($fullscreen) fullscreen.set()
|
||||
fullscreen.set()
|
||||
// Reset swiped event if fired
|
||||
swiped = false
|
||||
requestAnimationFrame(() => swiped = false)
|
||||
}
|
||||
|
||||
// Hover on controls
|
||||
|
||||
Reference in New Issue
Block a user