mirror of
https://github.com/konvajs/konva.git
synced 2026-01-09 11:34:38 +08:00
fixed issue with stage panning. stage node type needs to be declared before calling super constructor
This commit is contained in:
@@ -55,9 +55,9 @@
|
||||
|
||||
Kinetic.Util.addMethods(Kinetic.Stage, {
|
||||
___init: function(config) {
|
||||
this.nodeType = STAGE;
|
||||
// call super constructor
|
||||
Kinetic.Container.call(this, config);
|
||||
this.nodeType = STAGE;
|
||||
this._id = Kinetic.idCounter++;
|
||||
this._buildDOM();
|
||||
this._bindContentEvents();
|
||||
|
||||
Reference in New Issue
Block a user