diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-08-14 14:39:53 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-08-14 21:56:23 +0200 |
commit | f0fa6e3a7c4859d52b163b5c2e3389e72c4efd4c (patch) | |
tree | bf2881f1fe74822da6badc261a770f990ed74064 | |
parent | fcb527cdd6abda023a5e1de061f6cf7b1dd27205 (diff) |
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.
-rw-r--r-- | app/javascript/flavours/glitch/features/video/index.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/video/index.js b/app/javascript/flavours/glitch/features/video/index.js index e9e095e26..d9c59c677 100644 --- a/app/javascript/flavours/glitch/features/video/index.js +++ b/app/javascript/flavours/glitch/features/video/index.js @@ -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 = () => { |