This commit is contained in:
2024-12-18 22:11:06 +01:00
parent 80f69bf09c
commit 6af27de3dd
2 changed files with 117 additions and 8 deletions

View File

@@ -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) {