]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Prevent mousedown event default selection behavior
authorDaniel Imms <daimms@microsoft.com>
Mon, 12 Jun 2017 21:51:58 +0000 (14:51 -0700)
committerDaniel Imms <daimms@microsoft.com>
Mon, 12 Jun 2017 21:51:58 +0000 (14:51 -0700)
Fixes #698

src/SelectionManager.ts

index 906d5b013943a990aecdfa3f2a9919bfd9d3ba73..7cb99ccd36721367ff348595b09dea1b19d86604 100644 (file)
@@ -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;