diff --git a/src/view/com/lightbox/ImageViewing/index.tsx b/src/view/com/lightbox/ImageViewing/index.tsx index 967690eb4a..762a3604be 100644 --- a/src/view/com/lightbox/ImageViewing/index.tsx +++ b/src/view/com/lightbox/ImageViewing/index.tsx @@ -73,7 +73,7 @@ function ImageViewing({ const show = showControls && dismissSwipeTranslateY.value === 0 return { pointerEvents: show ? 'auto' : 'none', - opacity: withClampedSpring(show && openProgress.value > 0 ? 1 : 0), + opacity: withClampedSpring(show && openProgress.value === 1 ? 1 : 0), transform: [ { translateY: withClampedSpring(show ? 0 : -30), @@ -85,7 +85,7 @@ function ImageViewing({ const show = showControls && dismissSwipeTranslateY.value === 0 return { pointerEvents: show ? 'auto' : 'none', - opacity: withClampedSpring(show && openProgress.value > 0 ? 1 : 0), + opacity: withClampedSpring(show && openProgress.value === 1 ? 1 : 0), transform: [ { translateY: withClampedSpring(show ? 0 : 30),