mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 10:47:59 +08:00
Merge pull request #790 from kzhdev/performance-improvement
Improve getIntersection performance.
This commit is contained in:
@@ -55,7 +55,7 @@
|
|||||||
getIntersection: function(pos) {
|
getIntersection: function(pos) {
|
||||||
var obj, i, intersectionOffset, shape;
|
var obj, i, intersectionOffset, shape;
|
||||||
|
|
||||||
if(this.isVisible()) {
|
if(this.hitGraphEnabled() && this.isVisible()) {
|
||||||
for (i=0; i<INTERSECTION_OFFSETS_LEN; i++) {
|
for (i=0; i<INTERSECTION_OFFSETS_LEN; i++) {
|
||||||
intersectionOffset = INTERSECTION_OFFSETS[i];
|
intersectionOffset = INTERSECTION_OFFSETS[i];
|
||||||
obj = this._getIntersection({
|
obj = this._getIntersection({
|
||||||
|
Reference in New Issue
Block a user