Use auxclick event

This commit is contained in:
Daniel Imms
2017-06-20 10:49:58 -07:00
parent 6f5f68df1a
commit ef1e2ab9e2
+1 -1
View File
@@ -556,7 +556,7 @@ Terminal.prototype.initGlobal = function() {
if (term.browser.isLinux) {
// Use auxclick event over mousedown the latter doesn't seem to work. Note
// that the regular click event doesn't fire for the middle mouse button.
on(this.element, 'click', event => {
on(this.element, 'auxclick', event => {
if (event.button === 1) {
moveTextAreaUnderMouseCursor(event, this.textarea, this.selectionManager);
}