Skip to content
Snippets Groups Projects
Commit bc3e69d0 authored by Eric Rosenbaum's avatar Eric Rosenbaum
Browse files

Prevent dragging img in trimmer handles on firefox

parent aaa9c355
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment