Stuck in range selection after pressing Shift key once #7560

Open
opened 2026-02-20 05:04:36 -05:00 by deekerman · 6 comments
Owner

Originally created by @roschlau on GitHub (Dec 10, 2025).

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

In the browser (happens both in Firefox and Brave, tried on Arch and Bazzite, but not on Windows), after I have pressed the shift key at any point (even before actually having started selecting any images), selecting images in the timeline or in an album will behave as if I was permanently holding the shift-key, forcing me into range selection mode and preventing me from picking any individual images. This persists until I reload the page or navigate out of the current view entirely.

The OS that Immich Server is running on

Unraid

Version of Immich Server

v2.3.1

Version of Immich Mobile App

Irrelevant

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

No response

Your docker-compose.yml content

Using Docker from Unraid's app center, not sure how to get the docker-compose from there. I assume it's most likely irrelevant for this issue anyway though

Your .env content

Same as docker-compose

Reproduction steps

  1. Open the Timeline in Immich
  2. Press and release the Shift key
  3. Click the checkmark on any image to enter selection mode
  4. Move the mouse across several other images, observe that all images between the original one and the hovered one are highlighted without the shift key actually being held down

Relevant log output


Additional information

No response

Originally created by @roschlau on GitHub (Dec 10, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug In the browser (happens both in Firefox and Brave, tried on Arch and Bazzite, but not on Windows), after I have pressed the shift key at any point (even before actually having started selecting any images), selecting images in the timeline or in an album will behave as if I was permanently holding the shift-key, forcing me into range selection mode and preventing me from picking any individual images. This persists until I reload the page or navigate out of the current view entirely. ### The OS that Immich Server is running on Unraid ### Version of Immich Server v2.3.1 ### Version of Immich Mobile App Irrelevant ### Platform with the issue - [ ] Server - [x] Web - [ ] Mobile ### Device make and model _No response_ ### Your docker-compose.yml content ```YAML Using Docker from Unraid's app center, not sure how to get the docker-compose from there. I assume it's most likely irrelevant for this issue anyway though ``` ### Your .env content ```Shell Same as docker-compose ``` ### Reproduction steps 1. Open the Timeline in Immich 2. Press and release the Shift key 3. Click the checkmark on any image to enter selection mode 4. Move the mouse across several other images, observe that all images between the original one and the hovered one are highlighted without the shift key actually being held down ### Relevant log output ```shell ``` ### Additional information _No response_
Author
Owner

@bo0tzz commented on GitHub (Dec 10, 2025):

I cannot reproduce this. Can you get a recording? Can you reproduce it on https://demo.immich.app?

@bo0tzz commented on GitHub (Dec 10, 2025): I cannot reproduce this. Can you get a recording? Can you reproduce it on https://demo.immich.app?
Author
Owner

@YarosMallorca commented on GitHub (Dec 10, 2025):

I cannot reproduce it, but I could reproduce it accidentally while using Immich in the past, this bug occasionally happens to me, I cannot pinpoint when or why exactly

@YarosMallorca commented on GitHub (Dec 10, 2025): I cannot reproduce it, but I could reproduce it accidentally while using Immich in the past, this bug occasionally happens to me, I cannot pinpoint when or why exactly
Author
Owner

@Shyryp commented on GitHub (Dec 11, 2025):

@YarosMallorca
I can confirm, I'm having the same problem. Immich is the latest version (based on releases).

Here are three video examples of this behavior:

https://github.com/user-attachments/assets/b064d17b-71ab-46c2-ac74-8b0f96fb1b8c

https://github.com/user-attachments/assets/82071eb2-2255-4038-b936-cbcdf66ba694

https://github.com/user-attachments/assets/5c375898-3b77-4d27-8ce5-741dc1720e1d

For some unknown reason, the bug only occurs with certain images and videos in the collection.
Other images can be selected normally, and the WebUI doesn't freeze.

How to reproduce the problem:

  1. Select one (the first) image.
  2. Hold down Shift.
  3. Move the mouse cursor to another image (you don't have to click LBM on other images while holding Shift to reproduce the problem).
  4. The interface freezes.

The freeze occurs even before you click LBM while holding Shift - the problem occurs when the mouse cursor hovers over other images in the window.

Moreover, as you can see in the video, the program attempts to select all images in the collection, not those between the first and the current cursor position.
This is likely the cause of the freeze - the WebUI tries to select ALL images in the collection, which causes freezes and errors.

You can also see in the video that the selection process is generally incorrect. Hovering over the image while holding down Shift doesn't always correctly display the selection animation, and there are a number of other selection errors.

Furthermore, there's a related issue where, for some reason, not all selected images are deleted or archived, forcing you to repeat the process.

I have 30,000+ images and videos in my collection. I installed Immich two weeks ago. My main system - is Windows.

I've restarted Docker, I've restarted my PC, I've restarted my browser, I've cleared the page cache - nothing has helped.

@Shyryp commented on GitHub (Dec 11, 2025): @YarosMallorca I can confirm, I'm having the same problem. Immich is the latest version (based on releases). Here are three video examples of this behavior: https://github.com/user-attachments/assets/b064d17b-71ab-46c2-ac74-8b0f96fb1b8c https://github.com/user-attachments/assets/82071eb2-2255-4038-b936-cbcdf66ba694 https://github.com/user-attachments/assets/5c375898-3b77-4d27-8ce5-741dc1720e1d For some unknown reason, the bug only occurs with certain images and videos in the collection. Other images can be selected normally, and the WebUI doesn't freeze. How to reproduce the problem: 1) Select one (the first) image. 2) Hold down Shift. 3) Move the mouse cursor to another image (you don't have to click LBM on other images while holding Shift to reproduce the problem). 4) The interface freezes. The freeze occurs even before you click LBM while holding Shift - the problem occurs when the mouse cursor hovers over other images in the window. Moreover, as you can see in the video, the program attempts to select all images in the collection, not those between the first and the current cursor position. This is likely the cause of the freeze - the WebUI tries to select ALL images in the collection, which causes freezes and errors. You can also see in the video that the selection process is generally incorrect. Hovering over the image while holding down Shift doesn't always correctly display the selection animation, and there are a number of other selection errors. Furthermore, there's a related issue where, for some reason, not all selected images are deleted or archived, forcing you to repeat the process. I have 30,000+ images and videos in my collection. I installed Immich two weeks ago. My main system - is Windows. I've restarted Docker, I've restarted my PC, I've restarted my browser, I've cleared the page cache - nothing has helped.
Author
Owner

@Shyryp commented on GitHub (Dec 11, 2025):

@bo0tzz

I cannot reproduce this. Can you get a recording? Can you reproduce it on https://demo.immich.app?

I couldn't reproduce the specific issue I was experiencing in the demo, BUT I was able to reproduce the same freeze using other actions on demo.

I first selected objects in one timestamp, and then selected them in another timestamp (distant from the previous one). This caused both the interface to freeze and the objects to not be selected correctly.

Watch the video (immich demo from https://demo.immich.app/):

https://github.com/user-attachments/assets/f4c36729-3fe2-4a91-a5da-5b2f1a01a037

I also noticed that scrolling up and down is impossible when holding down Shift, which isn't quite what the user expected (why is scrolling blocked?).

@YarosMallorca

@Shyryp commented on GitHub (Dec 11, 2025): @bo0tzz > I cannot reproduce this. Can you get a recording? Can you reproduce it on https://demo.immich.app? I couldn't reproduce the specific issue I was experiencing in the demo, BUT I was able to reproduce the same freeze using other actions on demo. I first selected objects in one timestamp, and then selected them in another timestamp (distant from the previous one). This caused both the interface to freeze and the objects to not be selected correctly. Watch the video (immich demo from https://demo.immich.app/): https://github.com/user-attachments/assets/f4c36729-3fe2-4a91-a5da-5b2f1a01a037 ~~I also noticed that scrolling up and down is impossible when holding down Shift, which isn't quite what the user expected (why is scrolling blocked?).~~ @YarosMallorca
Author
Owner

@YarosMallorca commented on GitHub (Dec 11, 2025):

Scrolling blocked while Shift held is default browser behavior (try it on this GitHub page, for example), but yes, it would be ideal to be able to scroll while holding Shift.

@YarosMallorca commented on GitHub (Dec 11, 2025): Scrolling blocked while Shift held is default browser behavior (try it on this GitHub page, for example), but yes, it would be ideal to be able to scroll while holding Shift.
Author
Owner

@roschlau commented on GitHub (Dec 13, 2025):

I cannot reproduce this. Can you get a recording? Can you reproduce it on https://demo.immich.app?

@bo0tzz Sorry for the late reply - yes, I can reproduce it on the demo, here's a recording: https://drive.proton.me/urls/0B4V05GKVM#sSo5JVO8Fwo5
In the recording, I start out normally, and then after I cancel the first selection, I press the shift key once and release it again immediately, after which I do not press it anymore for the duration of the recording. You can see the weird behavior in the next selection, until I clear it again and reload the page, after which the issue is (temporarliy) resolved. Let me know if I can gather any additional information to narrow this down further

I also have to correct my earlier statement about the affected OSes. It is reproducing on Bazzite/KDE and Arch/Wayland in Firefox and Brave, but it is not reproducing in Firefox on Windows right now. All tested on the same machine.

The issue that @YarosMallorca and @Shyryp are reporting seems to be different though, that should probably be split off into its own issue. I'm not having any freezes, it's perfectly responsive, just acting like the Shift key got stuck.

@roschlau commented on GitHub (Dec 13, 2025): > I cannot reproduce this. Can you get a recording? Can you reproduce it on https://demo.immich.app? @bo0tzz Sorry for the late reply - yes, I can reproduce it on the demo, here's a recording: https://drive.proton.me/urls/0B4V05GKVM#sSo5JVO8Fwo5 In the recording, I start out normally, and then after I cancel the first selection, I press the shift key once and release it again immediately, after which I do not press it anymore for the duration of the recording. You can see the weird behavior in the next selection, until I clear it again and reload the page, after which the issue is (temporarliy) resolved. Let me know if I can gather any additional information to narrow this down further I also have to correct my earlier statement about the affected OSes. It is reproducing on Bazzite/KDE and Arch/Wayland in Firefox and Brave, but it is _not_ reproducing in Firefox on Windows right now. All tested on the same machine. The issue that @YarosMallorca and @Shyryp are reporting seems to be different though, that should probably be split off into its own issue. I'm not having any freezes, it's perfectly responsive, just acting like the Shift key got stuck.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/immich#7560
No description provided.