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 }