Use the `selectionchange` event to suppress the selection of the quote tooltip
authorAlexander Ebert <ebert@woltlab.com>
Sun, 20 Sep 2020 14:08:39 +0000 (16:08 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 20 Sep 2020 14:08:39 +0000 (16:08 +0200)
wcfsetup/install/files/js/WCF.Message.js

index f586c004ce22802b10f05b006aeb0f5c606697ba..4f1d7117f6d09a0a01a4c949de918e97178ac51d 100644 (file)
@@ -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;
                                }