Comfy-Org / Comfy-Org/ComfyUI_frontend

Mouse drag threshold is needed to avoid unintentional value change when clicking on numeric value input slider

Open
#188 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

Original Issuie: https://github.com/comfyanonymous/ComfyUI/issues/4074

### Feature Idea

Currently in ComfyUI, mouse down with a 1 pixel move is considered as a mouse drag action, this causes unintentional mouse drag action for example unintentional value change when clicking on a value slider if the mouse down is not precise enough with zero pixel move. This is especially difficult to avoid when using a tablet input device such as a Wacom tablet.

I would suggest to have a mouse drag threshold implemented, which can be defaulted to 3 pixels mouse down movement before the mousedown is considered as a mouse drag action. The drag threshold value in pixels should be exposed to user in the Settings panel.

Hope to see this implemented. Thanks.

### Existing Solutions

_No response_

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.