From: Alexander Ebert Date: Sun, 20 Sep 2020 14:08:39 +0000 (+0200) Subject: Use the `selectionchange` event to suppress the selection of the quote tooltip X-Git-Tag: 5.3.0_Beta_1~7^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f6dbf459d1e9f8427116b9aa7596c1711990173f;p=GitHub%2FWoltLab%2FWCF.git Use the `selectionchange` event to suppress the selection of the quote tooltip --- 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; }