mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
Fixed a wrong cache when a shape inside group has listening = false
This commit is contained in:
@@ -809,10 +809,11 @@
|
||||
* @memberof Konva.Node.prototype
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
shouldDrawHit: function(canvas) {
|
||||
shouldDrawHit: function() {
|
||||
var layer = this.getLayer();
|
||||
|
||||
return (
|
||||
(canvas && canvas.isCache) ||
|
||||
(!layer && this.isListening() && this.isVisible()) ||
|
||||
(layer &&
|
||||
layer.hitGraphEnabled() &&
|
||||
this.isListening() &&
|
||||
|
Reference in New Issue
Block a user