Prevent dragging img in trimmer handles on firefox

This commit is contained in:
Eric Rosenbaum committed 2019-07-24 14:08:36 -04:00
1 parent aaa9c355e9
commit bc3e69d047
1 file changed
+2
+2
View File
@@ -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;