0.1.0 • Published 8 months ago
lit-dragging v0.1.0
lit-dragging
Example
An element that moves itself
class MyDraggableElement extends LitElement {
constructor() {
super() {
new DragController(this, {
target: this,
onMove: (x, y) => {
this.style.left = `${x}px`;
this.style.top = `${y}px`;
};
})
}
}
}
0.1.0
8 months ago