mirror of
https://github.com/immich-app/immich.git
synced 2026-03-01 14:40:09 -05:00
Asset details are prematurely hidden when a drag ends if the simulation shows that it will close given its current velocity. It makes for a much more responsible feeling UI. However, this behaviour conflicts with the logic which determines whether details are showing based on the current offset. The result is that the details are hidden, then immediately shown again, and then hidden once it passes the min snap distance threshold. This can be fixed by only evaluating the position based logic when a drag is active, and then inferring upcoming state with a simulation.