Carousel: Fix Fullscreen opening when swiping
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-09 10:49:15 +02:00
parent 3ca7f713da
commit dd727ec9f4

View File

@@ -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