Fixed a wrong cache when a shape inside group has listening = false

This commit is contained in:
Anton Lavrenov
2018-10-12 12:07:04 -05:00
parent c76bbcd3e6
commit ffbb871a02
5 changed files with 114 additions and 7 deletions

View File

@@ -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() &&