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

Prevent default when dragging trim handles to prevent image drag
This commit is contained in:
Paul Kaplan authored and GitHub committed 2019-07-31 10:49:20 -04:00
commit e4ebd53e69
1 file changed
+4
+4
View File
@@ -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;