Media Viewer: Fix click-to-pause in fullscreen (#212)

This commit is contained in:
Ibrahima G. Coulibaly 2023-01-22 17:17:51 +01:00 committed by GitHub
parent 37006eb437
commit e15d569d7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,7 +254,7 @@ const VideoPlayer: FC<OwnProps> = ({
style={videoStyle}
onPlay={() => setIsPlaying(true)}
onEnded={handleEnded}
onClick={!IS_SINGLE_COLUMN_LAYOUT ? handleClick : undefined}
onClick={!IS_SINGLE_COLUMN_LAYOUT && !isFullscreen ? handleClick : undefined}
onDoubleClick={!IS_TOUCH_ENV ? handleFullscreenChange : undefined}
// eslint-disable-next-line react/jsx-props-no-spreading
{...bufferingHandlers}