DragToScroll icon indicating copy to clipboard operation
DragToScroll copied to clipboard

Implement SendButtonIfNoScroll

Open resolritter opened this issue 2 years ago • 2 comments

Implements the setting SendButtonIfNoScroll for sending Setting("Button") if scrolling does not happen

resolritter avatar Feb 16 '23 15:02 resolritter

So, for me, the script already sends the Button in most cases.

  • There is already the DragDelay setting, which will send the Button if its released within this timeframe. So a quick click.

  • And the MovementCheckDelay setting, which will send the Button if its held longer than this duration. So a long held click.

Am I right that your addition will handle the timeframe between these?

mmikeww avatar Feb 16 '23 16:02 mmikeww

SendButtonIfNoScroll is useful for situations where you entered the "dragging mode" (i.e. when your cursor changes if you have ChangeMouseCursor == true) but you didn't end up actually scrolling anything, so the button should be sent because that's what would happen without the script. i.e. certainly after DragDelay, but... Maybe after MovementCheckDelay? (I'm not sure if I understand MovementCheckDelay correctly, see below).

And the MovementCheckDelay setting, which will send the Button if its held longer than this duration. So a long held click.

It sounds like MovementCheckDelay is supposed to cover the use-case which I just mentioned, but it didn't work for me IIRC - hence why I came up with this new setting.

resolritter avatar Feb 17 '23 01:02 resolritter