Revert "add pointer"

This reverts commit 504278c30d.
This commit is contained in:
mervent
2026-03-20 20:04:05 +02:00
parent 504278c30d
commit 9aeac7c02b
+1 -12
View File
@@ -174,7 +174,6 @@ function createEntryHeaderWidget(index, onMoveUp, onMoveDown, onDelete) {
_downBounds: null,
_deleteBounds: null,
_mouseDownTarget: null,
_hovering: false,
draw(ctx, node, width, y, height) {
this.last_y = y;
@@ -294,18 +293,8 @@ function createEntryHeaderWidget(index, onMoveUp, onMoveDown, onDelete) {
}
if (event.type === "pointermove") {
const target = this._hitTest(pos);
const overClickable = target && !this._isDisabled(target, node);
const canvasEl = app.canvas.canvas;
if (overClickable) {
canvasEl.style.cursor = "pointer";
this._hovering = true;
} else if (this._hovering) {
canvasEl.style.cursor = "";
this._hovering = false;
}
if (!this._mouseDownTarget) return false;
const target = this._hitTest(pos);
this._upPressed = (this._mouseDownTarget === "up" && target === "up");
this._downPressed = (this._mouseDownTarget === "down" && target === "down");
this._deletePressed = (this._mouseDownTarget === "delete" && target === "delete");