wip
This commit is contained in:
@@ -29,11 +29,11 @@ export const panning = function(superClass) {
|
||||
}
|
||||
|
||||
firstUpdated() {
|
||||
super.firstUpdated();
|
||||
this.canvas = this.shadowRoot.querySelector('.canvas');
|
||||
this.addEventListener('mousedown', this._startDrag.bind(this));
|
||||
document.addEventListener('mousemove', this._drag.bind(this));
|
||||
document.addEventListener('mouseup', this._endDrag.bind(this));
|
||||
super.firstUpdated();
|
||||
}
|
||||
|
||||
_getTopNodeAtPoint(x, y) {
|
||||
|
||||
Reference in New Issue
Block a user