Fix keyboard navigation in media modal after clicking image (#37464)

This commit is contained in:
Heath Dutton🕴️ authored and GitHub committed 2026-01-13 10:47:04 +00:00
1 parent 5b54cd7f76
commit be60c4585e
1 file changed
+1 -1
@@ -85,7 +85,7 @@ export const MediaModal: FC<MediaModalProps> = forwardRef<
setIndex(newIndex);
setZoomedIn(false);
if (animate) {
void api.start({ x: `-${newIndex * 100}%` });
void api.start({ x: `calc(-${newIndex * 100}% + 0px)` });
}
},
[api, media.size],