From f6dbf459d1e9f8427116b9aa7596c1711990173f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 20 Sep 2020 16:08:39 +0200 Subject: [PATCH] Use the `selectionchange` event to suppress the selection of the quote tooltip --- wcfsetup/install/files/js/WCF.Message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index f586c004ce..4f1d7117f6 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -1079,7 +1079,7 @@ if (COMPILER_TARGET_DEFAULT) { // Prevent the tooltip from being selectable while the touch pointer is being moved. var timer = null; - window.addEventListener('touchmove', (function() { + document.addEventListener('selectionchange', (function() { if (!this._copyQuote[0].classList.contains('active')) { return; } -- 2.20.1