From edc32849c049f72827a8ea0a850c14ce58d358cc Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Fri, 8 May 2020 15:01:15 -0700 Subject: [PATCH] Use pointer events in raw tag editor when supported (re: #5505) --- modules/ui/sections/raw_tag_editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/sections/raw_tag_editor.js b/modules/ui/sections/raw_tag_editor.js index ea3a3a6b8..3ef28deb8 100644 --- a/modules/ui/sections/raw_tag_editor.js +++ b/modules/ui/sections/raw_tag_editor.js @@ -279,7 +279,7 @@ export function uiSectionRawTagEditor(id, context) { }); items.selectAll('button.remove') - .on('mousedown', removeTag); // 'click' fires too late - #5878 + .on(('PointerEvent' in window ? 'pointer' : 'mouse') + 'down', removeTag); // 'click' fires too late - #5878 }