Browse Source

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.
closed-social-glitch-2
Thibaut Girka 6 years ago
committed by ThibG
parent
commit
f0fa6e3a7c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/javascript/flavours/glitch/features/video/index.js

+ 3
- 0
app/javascript/flavours/glitch/features/video/index.js View File

@ -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…
Cancel
Save