mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Mouseover behaviour fixes (#684)
* fix broken tooltips * use bindEvent to make mouseover and mouseout work in the flyout
This commit is contained in:
committed by
picklesrus
parent
e1ae3f4aa8
commit
acaf81185e
@@ -131,9 +131,9 @@ Blockly.Tooltip.createDom = function() {
|
||||
* @param {!Element} element SVG element onto which tooltip is to be bound.
|
||||
*/
|
||||
Blockly.Tooltip.bindMouseEvents = function(element) {
|
||||
Blockly.bindEventWithChecks_(element, 'mouseover', null,
|
||||
Blockly.bindEvent_(element, 'mouseover', null,
|
||||
Blockly.Tooltip.onMouseOver_);
|
||||
Blockly.bindEventWithChecks_(element, 'mouseout', null,
|
||||
Blockly.bindEvent_(element, 'mouseout', null,
|
||||
Blockly.Tooltip.onMouseOut_);
|
||||
|
||||
// Don't use bindEvent_ for mousemove since that would create a
|
||||
|
||||
Reference in New Issue
Block a user