mirror of
https://github.com/konvajs/konva.git
synced 2025-09-21 04:27:56 +08:00
better caching if node not in layer
This commit is contained in:
@@ -199,7 +199,7 @@
|
||||
hitContext.translate(x * -1, y * -1);
|
||||
|
||||
// don't need to translate canvas if shape is not added to layer
|
||||
if (this.nodeType === 'Shape' && layer) {
|
||||
if (this.nodeType === 'Shape') {
|
||||
sceneContext.translate(this.x() * -1, this.y() * -1);
|
||||
hitContext.translate(this.x() * -1, this.y() * -1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user