Skip to content

Commit

Permalink
Merge pull request #700 from Tyriar/698_mousedown_preventDefault
Browse files Browse the repository at this point in the history
Prevent mousedown event default selection behavior
  • Loading branch information
Tyriar authored Jun 13, 2017
2 parents c33814a + c5cfa40 commit 5f9ad5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SelectionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,9 @@ export class SelectionManager extends EventEmitter {
return;
}

// Tell the browser not to start a regular selection
event.preventDefault();

// Reset drag scroll state
this._dragScrollAmount = 0;

Expand Down

0 comments on commit 5f9ad5c

Please sign in to comment.