From 2f73a9358e45a2173e57d2a1331a36e31809b803 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 e9e095e260..d9c59c677a 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 = () => {