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

Prevent img drag and select issues

parent d882d180
No related branches found
No related tags found
No related merge requests found
......@@ -114,6 +114,7 @@ $hover-scale: 1.25;
width: $trim-handle-width;
height: $trim-handle-height;
right: 0;
user-select: none;
}
.trimmer .trim-handle {
......
......@@ -62,6 +62,8 @@ class AudioSelector extends React.Component {
this.containerSize = width;
this.trimEndDragRecognizer.start(e);
e.preventDefault();
}
handleTrimStartMouseMove (currentOffset, initialOffset) {
const dx = (currentOffset.x - initialOffset.x) / this.containerSize;
......@@ -113,6 +115,7 @@ class AudioSelector extends React.Component {
this.initialTrimStart = this.props.trimStart;
this.initialTrimEnd = this.props.trimEnd;
e.stopPropagation();
e.preventDefault();
}
handleTrimEndMouseDown (e) {
this.containerSize = this.containerElement.getBoundingClientRect().width;
......@@ -120,6 +123,7 @@ class AudioSelector extends React.Component {
this.initialTrimEnd = this.props.trimEnd;
this.initialTrimStart = this.props.trimStart;
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