From bc3e69d04746ca9bfe52d3d055cc1f05fa61f9f1 Mon Sep 17 00:00:00 2001
From: Eric Rosenbaum <eric.rosenbaum@gmail.com>
Date: Wed, 24 Jul 2019 14:08:36 -0400
Subject: [PATCH] Prevent dragging img in trimmer handles on firefox

---
 src/containers/audio-trimmer.jsx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/containers/audio-trimmer.jsx b/src/containers/audio-trimmer.jsx
index 9cf6e38f1..dcfcb7502 100644
--- a/src/containers/audio-trimmer.jsx
+++ b/src/containers/audio-trimmer.jsx
@@ -52,6 +52,7 @@ class AudioTrimmer extends React.Component {
         window.addEventListener('mouseup', this.handleTrimStartMouseUp);
         window.addEventListener('touchmove', this.handleTrimStartMouseMove);
         window.addEventListener('touchend', this.handleTrimStartMouseUp);
+        e.preventDefault();
     }
     handleTrimEndMouseDown (e) {
         this.initialX = getEventXY(e).x;
@@ -60,6 +61,7 @@ class AudioTrimmer extends React.Component {
         window.addEventListener('mouseup', this.handleTrimEndMouseUp);
         window.addEventListener('touchmove', this.handleTrimEndMouseMove);
         window.addEventListener('touchend', this.handleTrimEndMouseUp);
+        e.preventDefault();
     }
     storeRef (el) {
         this.containerElement = el;
-- 
GitLab