mirror of
https://github.com/konvajs/konva.git
synced 2025-09-18 18:27:58 +08:00
removed dynamic drag and drop layer all together. In the end, the performance benefits (small) did not out weigh the complexity consequences
This commit is contained in:
14
src/Stage.js
14
src/Stage.js
@@ -30,10 +30,6 @@
|
||||
this._buildDOM();
|
||||
this._bindContentEvents();
|
||||
Kinetic.Global.stages.push(this);
|
||||
|
||||
if(dd) {
|
||||
dd._initDragLayer(this);
|
||||
}
|
||||
},
|
||||
/**
|
||||
* set container dom element which contains the stage wrapper div element
|
||||
@@ -309,22 +305,12 @@
|
||||
// chainable
|
||||
return this;
|
||||
},
|
||||
/**
|
||||
* get drag and drop layer
|
||||
*/
|
||||
getDragLayer: function() {
|
||||
return this.dragLayer;
|
||||
},
|
||||
getParent: function() {
|
||||
return null;
|
||||
},
|
||||
getLayer: function() {
|
||||
return null;
|
||||
},
|
||||
_isTempDDLayerActive: function() {
|
||||
var dragLayer = this.dragLayer;
|
||||
return dragLayer && dragLayer.getStage();
|
||||
},
|
||||
_setPointerPosition: function(evt) {
|
||||
if(!evt) {
|
||||
evt = window.event;
|
||||
|
Reference in New Issue
Block a user