mirror of
https://github.com/konvajs/konva.git
synced 2025-12-05 03:24:23 +08:00
made isPointInShape() a public method for the purpose of collision detection
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.isPointInShape(pos)) {
|
||||
// handle onmousedown
|
||||
if(!isDragging && this.mouseDown) {
|
||||
this.mouseDown = false;
|
||||
|
||||
Reference in New Issue
Block a user