Fix #3386 - Warning Bubble Dragging (#3479)

* Set no-pointer events on the warning text svg element.
This commit is contained in:
Mustafa Jebara
2019-12-04 17:49:18 -05:00
committed by Sam El-Husseini
parent e5cb8e753e
commit d99d913600
2 changed files with 5 additions and 1 deletions

View File

@@ -677,5 +677,9 @@ Blockly.Css.CONTENT = [
'width: 0;',
'height: 0;',
'}',
'.blocklyNoPointerEvents {',
'pointer-events: none;',
'}',
/* eslint-enable indent */
];

View File

@@ -92,7 +92,7 @@ Blockly.Warning.textToDom_ = function(text) {
(Blockly.utils.dom.createSvgElement(
'text',
{
'class': 'blocklyText blocklyBubbleText',
'class': 'blocklyText blocklyBubbleText blocklyNoPointerEvents',
'y': Blockly.Bubble.BORDER_WIDTH
},
null)