From c855152e860dc220b733f47524d3cffd2e5af568 Mon Sep 17 00:00:00 2001 From: Paul Kaplan <pkaplan@media.mit.edu> Date: Wed, 31 Jul 2019 10:48:06 -0400 Subject: [PATCH] Prevent default when dragging trim handles to prevent image drag --- src/containers/audio-trimmer.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/containers/audio-trimmer.jsx b/src/containers/audio-trimmer.jsx index 78bd4ebac..b8591eabb 100644 --- a/src/containers/audio-trimmer.jsx +++ b/src/containers/audio-trimmer.jsx @@ -42,11 +42,15 @@ class AudioTrimmer extends React.Component { this.containerSize = this.containerElement.getBoundingClientRect().width; this.trimStartDragRecognizer.start(e); this.initialTrim = this.props.trimStart; + e.stopPropagation(); + e.preventDefault(); } handleTrimEndMouseDown (e) { this.containerSize = this.containerElement.getBoundingClientRect().width; this.trimEndDragRecognizer.start(e); this.initialTrim = this.props.trimEnd; + e.stopPropagation(); + e.preventDefault(); } storeRef (el) { this.containerElement = el; -- GitLab