mirror of
https://github.com/konvajs/konva.git
synced 2025-12-05 03:24:23 +08:00
changed isPointInShape() to intersects(). Currently the method accepts a point object, but I may extend this to also accept another shape object
This commit is contained in:
@@ -364,7 +364,7 @@ Kinetic.Stage.prototype = {
|
||||
this.targetFound = true;
|
||||
}
|
||||
|
||||
if(shape.attrs.visible && pos !== undefined && shape.isPointInShape(pos)) {
|
||||
if(shape.attrs.visible && pos !== undefined && shape.intersects(pos)) {
|
||||
// handle onmousedown
|
||||
if(!isDragging && this.mouseDown) {
|
||||
this.mouseDown = false;
|
||||
|
||||
Reference in New Issue
Block a user