This App is No Longer Maintained. Visit the Replacement at

StrokesPlus Forum
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 General Discussion
 General Discussion
 How to make different gesture with different lengt
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  


8 Posts

Posted - 07/05/2017 :  23:49:36  Show Profile  Reply with Quote

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?


2606 Posts

Posted - 07/08/2017 :  22:19:00  Show Profile  Visit Rob's Homepage  Reply with Quote
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

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:

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000