mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Make context menus work again; fix dragging from the toolbox with variables.
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user