function updateSeekTooltip(event) {
	    var _this5 = this;

	    // Bail if setting not true
	    if (!this.config.tooltips.seek || !is$1.element(this.elements.inputs.seek) || !is$1.element(this.elements.display.seekTooltip) || this.duration === 0) {
	      return;
	    } // Calculate percentage


	    var percent = 0;
	    var clientRect = this.elements.progress.getBoundingClientRect();
	    var visible = "".concat(this.config.classNames.tooltip, "--visible");

	    var toggle = function toggle(_toggle) {
	      toggleClass(_this5.elements.display.seekTooltip, visible, _toggle);
	    }; // Hide on touch


	    if (this.touch) {
	      toggle(false);
	      return;
	    } // Determine percentage, if already visible


	    if (is$1.event(event)) {
	      percent = 100 / clientRect.width * (event.pageX - clientRect.left);
	    } else if (hasClass(this.elements.display.seekTooltip, visible)) {
	      percent = parseFloat(this.elements.display.seekTooltip.style.left, 10);
	    } else {
	      return;
	    } // Set bounds


	    if (percent < 0) {
	      percent = 0;
	    } else if (percent > 100) {
	      percent = 100;
	    } // Display the time a click would seek to


	    controls.updateTimeDisplay.call(this, this.elements.display.seekTooltip, this.duration / 100 * percent); // Set position

	    this.elements.display.seekTooltip.style.left = "".concat(percent, "%"); // Show/hide the tooltip
	    // If the event is a moues in/out and percentage is inside bounds

	    if (is$1.event(event) && ['mouseenter', 'mouseleave'].includes(event.type)) {
	      toggle(event.type === 'mouseenter');
	    }
	  }
function updateSeekTooltip(event) {
	    var _this5 = this;

	    
	    if (!this.config.tooltips.seek || !is$1.element(this.elements.inputs.seek) || !is$1.element(this.elements.display.seekTooltip) || this.duration === 0) {
	      return;
	    } 


	    var percent = 0;
	    var clientRect = this.elements.progress.getBoundingClientRect();
	    var visible = "".concat(this.config.classNames.tooltip, "--visible");

	    var toggle = function toggle(_toggle) {
	      toggleClass(_this5.elements.display.seekTooltip, visible, _toggle);
	    }; 


	    if (this.touch) {
	      toggle(false);
	      return;
	    } 


	    if (is$1.event(event)) {
	      percent = 100 / clientRect.width * (event.pageX - clientRect.left);
	    } else if (hasClass(this.elements.display.seekTooltip, visible)) {
	      percent = parseFloat(this.elements.display.seekTooltip.style.left, 10);
	    } else {
	      return;
	    } 


	    if (percent < 0) {
	      percent = 0;
	    } else if (percent > 100) {
	      percent = 100;
	    } 


	    controls.updateTimeDisplay.call(this, this.elements.display.seekTooltip, this.duration / 100 * percent); 

	    this.elements.display.seekTooltip.style.left = "".concat(percent, "%"); 
	    

	    if (is$1.event(event) && ['mouseenter', 'mouseleave'].includes(event.type)) {
	      toggle(event.type === 'mouseenter');
	    }
	  }
function updateSeekTooltip ( event ) { var _this5 = this ; // Bail if setting not true if ( ! this . config . tooltips . seek || ! is$1 . element ( this . elements . inputs . seek ) || ! is$1 . element ( this . elements . display . seekTooltip ) || this . duration === 0 ) { return ; } // Calculate percentage var percent = 0 ; var clientRect = this . elements . progress . getBoundingClientRect ( ) ; var visible = "" . concat ( this . config . classNames . tooltip , "--visible" ) ; var toggle = function toggle ( _toggle ) { toggleClass ( _this5 . elements . display . seekTooltip , visible , _toggle ) ; } ; // Hide on touch if ( this . touch ) { toggle ( false ) ; return ; } // Determine percentage, if already visible if ( is$1 . event ( event ) ) { percent = 100 / clientRect . width * ( event . pageX - clientRect . left ) ; } else if ( hasClass ( this . elements . display . seekTooltip , visible ) ) { percent = parseFloat ( this . elements . display . seekTooltip . style . left , 10 ) ; } else { return ; } // Set bounds if ( percent < 0 ) { percent = 0 ; } else if ( percent > 100 ) { percent = 100 ; } // Display the time a click would seek to controls . updateTimeDisplay . call ( this , this . elements . display . seekTooltip , this . duration / 100 * percent ) ; // Set position this . elements . display . seekTooltip . style . left = "" . concat ( percent , "%" ) ; // Show/hide the tooltip // If the event is a moues in/out and percentage is inside bounds if ( is$1 . event ( event ) && [ 'mouseenter' , 'mouseleave' ] . includes ( event . type ) ) { toggle ( event . type === 'mouseenter' ) ; } }
Update hover tooltip for seeking
Update hover tooltip for seeking