add brush preview

This commit is contained in:
りき萌 2024-09-08 12:09:14 +02:00
parent 4430d6d125
commit 37520f34f7
7 changed files with 167 additions and 22 deletions

View file

@ -47,6 +47,7 @@ export class ResizeHandle extends HTMLElement {
let mouseDown = await listen([this, "mousedown"]);
let startingSize = this.size;
if (mouseDown.button == 0) {
mouseDown.preventDefault();
this.classList.add("dragging");
while (true) {