mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 00:50:23 -05:00
Fixed event propagation trigger navigating twice (#293)
This commit is contained in:
parent
a45d6fdf57
commit
32b847c26e
1 changed files with 6 additions and 2 deletions
|
@ -63,7 +63,9 @@
|
|||
dispatch('close');
|
||||
};
|
||||
|
||||
const navigateAssetForward = () => {
|
||||
const navigateAssetForward = (e?: Event) => {
|
||||
e?.stopPropagation();
|
||||
|
||||
const nextAsset = $flattenAssetGroupByDate[selectedIndex + 1];
|
||||
viewDeviceId = nextAsset.deviceId;
|
||||
viewAssetId = nextAsset.id;
|
||||
|
@ -73,7 +75,9 @@
|
|||
pushState(viewAssetId);
|
||||
};
|
||||
|
||||
const navigateAssetBackward = () => {
|
||||
const navigateAssetBackward = (e?: Event) => {
|
||||
e?.stopPropagation();
|
||||
|
||||
const lastAsset = $flattenAssetGroupByDate[selectedIndex - 1];
|
||||
viewDeviceId = lastAsset.deviceId;
|
||||
viewAssetId = lastAsset.id;
|
||||
|
|
Loading…
Reference in a new issue