[Glitch] Fix keyboard navigation in media modal after clicking image
Port be60c4585ebdac0cc236fb597246922af3fb6ce8 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
b4ed1e6c99
commit
e14af55640
@ -85,7 +85,7 @@ export const MediaModal: FC<MediaModalProps> = forwardRef<
|
|||||||
setIndex(newIndex);
|
setIndex(newIndex);
|
||||||
setZoomedIn(false);
|
setZoomedIn(false);
|
||||||
if (animate) {
|
if (animate) {
|
||||||
void api.start({ x: `-${newIndex * 100}%` });
|
void api.start({ x: `calc(-${newIndex * 100}% + 0px)` });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[api, media.size],
|
[api, media.size],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user