mirror of
https://github.com/konvajs/konva.git
synced 2025-12-17 18:01:15 +08:00
fix typo of shouldDrawHit
This commit is contained in:
@@ -346,7 +346,7 @@
|
|||||||
},
|
},
|
||||||
shouldDrawHit: function(canvas) {
|
shouldDrawHit: function(canvas) {
|
||||||
var layer = this.getLayer();
|
var layer = this.getLayer();
|
||||||
return ((canvas && canvas.isCache) || (layer && layer.hitGraphEnabled()))
|
return (canvas && canvas.isCache) || (layer && layer.hitGraphEnabled())
|
||||||
&& this.isVisible() && !Kinetic.isDragging();
|
&& this.isVisible() && !Kinetic.isDragging();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -643,7 +643,7 @@
|
|||||||
*/
|
*/
|
||||||
shouldDrawHit: function(canvas) {
|
shouldDrawHit: function(canvas) {
|
||||||
var layer = this.getLayer();
|
var layer = this.getLayer();
|
||||||
return ((canvas && canvas.isCache) || (layer && layer.hitGraphEnabled()))
|
return (canvas && canvas.isCache) || (layer && layer.hitGraphEnabled())
|
||||||
&& this.isListening() && this.isVisible() && !Kinetic.isDragging();
|
&& this.isListening() && this.isVisible() && !Kinetic.isDragging();
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user