Fix progress bar spacer for touch devices

Update condition to add the progress bar spacer when on touch devices, ensuring correct UI behavior regardless of nonTouchPosition setting.
This commit is contained in:
Yiannis Christodoulou 2025-10-10 00:14:46 +03:00
parent a6abd46cbe
commit 523ae2e736

View File

@ -2813,7 +2813,7 @@ function VideoJSPlayer({ videoId = 'default-video' }) {
controlBar &&
customRemainingTime &&
customRemainingTime.el() &&
PlayerConfig.progressBar.nonTouchPosition !== 'default'
(PlayerConfig.progressBar.nonTouchPosition !== 'default' || isTouchDevice)
) {
// Create spacer element
const spacer = document.createElement('div');