From c6de90057f3ec83049bdcaa96f07a7e926c6afcf Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Tue, 26 Nov 2024 22:41:29 +1100 Subject: [PATCH] Fix slider regression caused by CanvasPointer --- src/LGraphCanvas.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LGraphCanvas.ts b/src/LGraphCanvas.ts index ca1cbae3..b5d57a34 100644 --- a/src/LGraphCanvas.ts +++ b/src/LGraphCanvas.ts @@ -2518,6 +2518,7 @@ export class LGraphCanvas { if (widget.options.read_only) break pointer.onDrag = (eMove) => { + const x = eMove.canvasX - node.pos[0] const slideFactor = clamp((x - 15) / (width - 30), 0, 1) widget.value = widget.options.min + (widget.options.max - widget.options.min) * slideFactor if (oldValue != widget.value) {