+1
-12
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user