diff --git a/src/LGraphCanvas.ts b/src/LGraphCanvas.ts index ca1cbae35..b5d57a344 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) {