]> git.mxchange.org Git - friendica.git/commitdiff
Switch comment box closing event listener from click to mousedown
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 29 Mar 2019 02:31:47 +0000 (22:31 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 29 Mar 2019 02:32:31 +0000 (22:32 -0400)
- Fix event race condition in Chrome 73 (https://github.com/friendica/friendica/issues/6947)

view/theme/frio/js/theme.js

index 83623bf34214a93fbd9ce3ee3a8a3b8a69fbf0da..d058cc4aa264e88812f48161b0fb6ff099f57a8f 100644 (file)
@@ -282,7 +282,7 @@ $(document).ready(function(){
         * We are making an exception for buttons because of a race condition with the
         * comment opening button that results in an already closed comment UI.
         */
-       $(document).on('click', function(event) {
+       $(document).on('mousedown', function(event) {
                if (event.target.type === 'button') {
                        return true;
                }