source/js/le-player.js
/**
	 * On click video event handler. Focus on video and togglePlay
	 *
	 * @access private
	 * @param {PlayerEvent} e
	 */
On click video event handler. Focus on video and togglePlay
@access private
@param {PlayerEvent} e
On click video event handler . Focus on video and togglePlay @access private @param { PlayerEvent } e
_onClick(e) {
		clearTimeout(this._dblclickTimeout);
		const togglePlay = () => {
			this._dblclickTimeout = setTimeout(() => {
				this.video.element.focus()
				this.togglePlay();
			}, 300);
		}
		if(IS_TOUCH() && this.view === 'fullscreen') {
			if(this.player.userActive) {
				togglePlay()
			}
		} else {
			togglePlay()
		}
	}
_onClick ( e ) { clearTimeout ( this . _dblclickTimeout ) ; const togglePlay = ( ) => { this . _dblclickTimeout = setTimeout ( ( ) => { this . video . element . focus ( ) this . togglePlay ( ) ; } , 300 ) ; } if ( IS_TOUCH ( ) && this . view === 'fullscreen' ) { if ( this . player . userActive ) { togglePlay ( ) } } else { togglePlay ( ) } }
On click video event handler.
On click video event handler .
/**
		 * See LPLR-290
		 * On touch devices in fullscreen if user not active we don't should toggle
		 * At first we show him a controls
		 */