Change slider target from document to player.el_ when it listen to mouse and touch events #1962
Labels
needs: discussion
Needs a broader discussion
pinned
Things that stalebot shouldn't close automatically
Hello guys
I am currently experiencing a problem with the video player inside a mobile slide gallery.
The video progress can not be modified because the swipe of the progress bar triggers a swipe on the slide gallery.
I took a look at the code and the slide component listens to the mouse and touch events directly from the document.
The problem is is that I can not stop propagation of these events since they are bind to the document.
I propose that we change the code to:
This will make it necessary to change the code of the progressBar control and probably the volume control but it will give the the possibility to the controls that rely on the slider, to stopPropagation onMouseMove and onMouseUp handlers and therefore, prevents issues like the one I described.
I can implement this change if you guys want.
The text was updated successfully, but these errors were encountered: