Skip to content

Commit 3e72d26

Browse files
Copilotlstein
andauthored
Fix umap fullscreen exit when click-to-navigate is active (#176)
* Initial plan * Fix: Exit fullscreen when clicking image with 'Click selects image' enabled Co-authored-by: lstein <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: lstein <[email protected]>
1 parent edb5ce3 commit 3e72d26

File tree

1 file changed

+5
-0
lines changed
  • photomap/frontend/static/javascript

1 file changed

+5
-0
lines changed

photomap/frontend/static/javascript/umap.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,6 +1296,11 @@ async function handleImageClick(clickedIndex) {
12961296

12971297
// Navigate directly to the clicked image without entering search mode
12981298
slideState.navigateToIndex(clickedIndex, false);
1299+
1300+
// Exit fullscreen mode if enabled
1301+
if (isFullscreen && state.umapExitFullscreenOnSelection) {
1302+
setTimeout(() => toggleFullscreen(false), 100); // slight delay to avoid flicker
1303+
}
12991304
}
13001305

13011306
// -------------------- Window Management --------------------

0 commit comments

Comments
 (0)