mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 08:56:15 +08:00
Improve getIntersection performance
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
getIntersection: function(pos) {
|
||||
var obj, i, intersectionOffset, shape;
|
||||
|
||||
if(this.isVisible()) {
|
||||
if(this.hitGraphEnabled() && this.isVisible()) {
|
||||
for (i=0; i<INTERSECTION_OFFSETS_LEN; i++) {
|
||||
intersectionOffset = INTERSECTION_OFFSETS[i];
|
||||
obj = this._getIntersection({
|
||||
|
||||
Reference in New Issue
Block a user