Fix keyboard navigation in media modal after clicking image (#37464)
This commit is contained in:
parent
5b54cd7f76
commit
be60c4585e
@ -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],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user