Make context menus work again; fix dragging from the toolbox with variables.

This commit is contained in:
Rachel Fenichel
2016-09-07 15:49:20 -07:00
parent 706d74c81e
commit c373d6d091
3 changed files with 13 additions and 4 deletions

View File

@@ -133,7 +133,11 @@ Blockly.Tooltip.createDom = function() {
Blockly.Tooltip.bindMouseEvents = function(element) {
Blockly.bindEvent_(element, 'mouseover', null, Blockly.Tooltip.onMouseOver_);
Blockly.bindEvent_(element, 'mouseout', null, Blockly.Tooltip.onMouseOut_);
Blockly.bindEvent_(element, 'mousemove', null, Blockly.Tooltip.onMouseMove_);
// Don't use bindEvent_ for mousemove since that would create a
// corresponding touch handler, even though this only makes sense in the
// context of a mouseover/mouseout.
element.addEventListener('mousemove', Blockly.Tooltip.onMouseMove_, false);
};
/**