Skip to content
Snippets Groups Projects
Unverified Commit e4ebd53e authored by Paul Kaplan's avatar Paul Kaplan Committed by GitHub
Browse files

Merge pull request #5050 from paulkaplan/fix-recording-drag-firefox

Prevent default when dragging trim handles to prevent image drag
parents 1259457e c855152e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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