From f0fa6e3a7c4859d52b163b5c2e3389e72c4efd4c Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Tue, 14 Aug 2018 14:39:53 +0200 Subject: [PATCH] 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. --- app/javascript/flavours/glitch/features/video/index.js | 3 +++ 1 file changed, 3 insertions(+) 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 = () => {