Page MenuHome

Drag Treashold parameter - no reaction
Closed, ArchivedPublic

Description

System Information
Operating system: Win 7 64
Graphics card: NV GTX 770

Blender Version
Broken: 2.80, 8c87af74409a, 06.02.2019

In my case to the "Front" view I assigned "2" key and to the "Back" view key "2+Drag".
as you can see in the video below, changing the "Drag Threshold" parameter does not bring any effect and blender still uses default value.
I also propose to increase the maximum value from 40 to 1024 px similar to "Tweak Threshold".
Thank you.

Video:
https://www.youtube.com/watch?v=hTS72Ckw5KM&feature=youtu.be

Event Timeline

Nanomanpro updated the task description. (Show Details)
Nanomanpro updated the task description. (Show Details)

Note, it's using tweak threshold, would be careful changing this since we might not want to have different values for tweak & drag in the event handling (could cause bugs).

Sebastian Parborg (zeddb) lowered the priority of this task from 90 to Normal.
Brecht Van Lommel (brecht) changed the task status from Unknown Status to Unknown Status.EditedFeb 7 2019, 12:25 PM

The naming might be poor, but the Drag Threshold tooltip says it applies to UI items.

I'm not sure what "2+Drag" is, but also in the keymap editor it is called Tweak, not Drag.

Hello Brecht, and thank you very much for your explanation.
Names in this form may in fact be misleading, because, as you can see in the picture below "Click Drag" may suggest a relationship with a "Drag Treashold" parameter.
Maybe "Click Tweak" in keymap would be a better idea?

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Unknown Status.Feb 7 2019, 5:56 PM

Ah wait, this is a new feature. Normally Tweak events are intended for this purpose.

@Campbell Barton (campbellbarton), can we remove this CLICK_DRAG event? It's not used anymore in Blender code, tweak event handling is already complicated enough so would rather not have another similar way of doing it.

This was added to support keyboard shortcuts to be used for both pie menus and single key access.

For a while we had Tab-key access both pie menu and edit mode.

After testing we agreed this wasn't a good default because key-up events give the impression of lag, if you're not expecting it to behave this way.

But IIRC, from discussion at the time we thought this useful to be able to do, and people making their own keymaps customization could use it.


Without this there is no way to tell the difference between a click and a click-drag keyboard event:

This allows for some more flexible keymaps, OTOH, having click and click-drag on keyboard event's is not typically done.

@Pablo Vazquez (pablovazquez) - what do you think? Is supporting different actions for tap/drag (typically pie menu) worth supporting?


*EDIT* posted on dev-talk: https://devtalk.blender.org/t/keyboard-tap-drag-dection-useful/5450

Even calling this tweak-threshold is misleading since it's used for click & double-click.

Having both is confusing, propose to use only one, see: D4322

Closing since this is more a UI/communication issue,
not a mistake in the code.