Skip to content

Commit 5ca2be3

Browse files
committed
UX: Let PhotoSwipe handle the left and right 20% of the screen #1307
Signed-off-by: Michael Mayer <michael@photoprism.app>
1 parent e8307a3 commit 5ca2be3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/component/lightbox.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,8 +1297,8 @@ export default {
12971297
} else if (ev.clientX && window.innerWidth) {
12981298
const x = ev.clientX / window.innerWidth;
12991299
1300-
// Let PhotoSwipe do the left and right 18% of the screen.
1301-
if (x <= 0.18 || x >= 0.82) {
1300+
// Let PhotoSwipe handle the left and right 20% of the screen.
1301+
if (x <= 0.2 || x >= 0.8) {
13021302
return;
13031303
}
13041304
}

0 commit comments

Comments
 (0)