mirror of
https://github.com/konvajs/konva.git
synced 2025-10-08 00:14:23 +08:00
when node is at the edge of the canvas, and you mouse over the node and then off the canvas, the mouseout handlers for the node are executed
This commit is contained in:
5
dist/kinetic-core.js
vendored
5
dist/kinetic-core.js
vendored
@@ -1535,6 +1535,11 @@ Kinetic.Stage.prototype = {
|
||||
}, false);
|
||||
|
||||
this.container.addEventListener('mouseout', function(evt) {
|
||||
// if there's a current target shape, run mouseout handlers
|
||||
var targetShape = that.targetShape;
|
||||
if(targetShape) {
|
||||
targetShape._handleEvents('onmouseout', evt);
|
||||
}
|
||||
that.mousePos = undefined;
|
||||
}, false);
|
||||
// mobile events
|
||||
|
2
dist/kinetic-core.min.js
vendored
2
dist/kinetic-core.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user