Prevent default event handling when clicking on the video position slider

This prevents accidental text selection and avoids opening the toot containing
the video in the dynamic column when clicking on the position slider.
lolsob-rspec
Thibaut Girka 2018-08-14 14:39:53 +02:00 committed by ThibG
parent 5e1e9753c3
commit 2f73a9358e
1 changed files with 3 additions and 0 deletions

View File

@ -160,6 +160,9 @@ export default class Video extends React.PureComponent {
this.setState({ dragging: true }); this.setState({ dragging: true });
this.video.pause(); this.video.pause();
this.handleMouseMove(e); this.handleMouseMove(e);
e.preventDefault();
e.stopPropagation();
} }
handleMouseUp = () => { handleMouseUp = () => {