mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-30 04:39:00 +01:00
Media Viewer: Fix over Play button overlapping with Slide Left (#2024)
This commit is contained in:
parent
893e6b4321
commit
50dc91d71d
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user