Media Viewer: Fix over Play button overlapping with Slide Left (#2024)

This commit is contained in:
Alexander Zinchuk 2022-09-12 11:05:58 +02:00
parent 893e6b4321
commit 50dc91d71d

View File

@ -187,6 +187,9 @@ const MediaViewerSlides: FC<OwnProps> = ({
const changeSlideOnClick = (e: MouseEvent): [boolean, boolean] => {
if (transformRef.current.scale !== 1) return [false, false];
if ((e.target as HTMLElement).closest('div.VideoPlayerControls')) {
return [false, false];
}
let direction = 0;
if (windowHeight - e.pageY < CLICK_Y_THRESHOLD) {
return [false, false];