Author |
Topic |
|
qaws18726
8 Posts |
Posted - 07/05/2017 : 23:49:36
|
Hi,
There is only a global settings `Min. Gesture Length`. It is need to be a small value to make sure complicate gestures can be recognized correctly.
But for some simple gestures, such as `right` and `left` , would trigger by a small gesture Length, which usually make something wrong.
What I want to do is set a enough gesture Length(such as 100px) for right, left , low-right, low-left and so on. Is there any way to do this?
|
|
Rob
USA
2615 Posts |
Posted - 07/08/2017 : 22:19:00
|
I am trying to understand exactly what you are stating.
Do you mean that you experience an accidental gesture due to drawing a short distance? However, increasing the minimum gesture length would make it difficult to draw complicated gestures?
Inside your simple gesture (straight lines) actions, you could simply not execute the action if the gesture length. For example, you could examine the variables available to all actions like gsx (gesture start X), gex (gesture end X), gsy (gesture start Y), and gey (gesture end Y). Like this:
(for a left straight line) if gsx - gex > 100 then --do something here end
That would ignore the action if the gesture wasn't more than 100 pixels from the start to the end. Of course, various monitor configurations could lead to more complicating logic (gesture points being negative values, etc)
That is one example, you can see some more advanced discussion here: http://www.strokesplus.com/forum/topic/1191/combining-3-scripts-with-one-gesture
|
|
|
|
Topic |
|
|
|