mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-12 06:06:22 +01:00
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.
This commit is contained in:
parent
fcb527cdd6
commit
f0fa6e3a7c
@ -160,6 +160,9 @@ export default class Video extends React.PureComponent {
|
||||
this.setState({ dragging: true });
|
||||
this.video.pause();
|
||||
this.handleMouseMove(e);
|
||||
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
||||
handleMouseUp = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user