Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

touchUp and touchMoved Issue. #1

Open
JugalRupela opened this issue Dec 30, 2015 · 6 comments
Open

touchUp and touchMoved Issue. #1

JugalRupela opened this issue Dec 30, 2015 · 6 comments

Comments

@JugalRupela
Copy link

Hi nneonneo, First off all thanks for this wonderful Plugin. I ask for help at openframeworks forum, then someone directed me here...I'm not a pro... but I'm facing some issues here, I wanted to create a simple swipe gesture, so I'm trying different methods to achieve that. (may be you can help me to achieve that?)
Whenever I want to call any function from touchUp or touchMoved, sometimes it just call it as soon I touchdown or sometimes it doesn't call at all... (for example :- I want to print anything on touchMove or sometimes touchUp.... it will just print as soon I touch down).
Like I said I'm just a beginner, appreciate if you can assist me...... Thanks in advance.

@nneonneo
Copy link
Owner

What device are you using this with, and what version of Windows?

On Tue, Dec 29, 2015, 21:47 Jug notifications@github.com wrote:

Hi nneonneo, First off all thanks for this wonderful Plugin I ask for help
at openframeworks forum, then someone directed me hereI'm not a pro but I'm
facing some issues here, I wanted to create a simple swipe gesture, so I'm
trying different methods to achieve that (may be you can help me to achieve
that?)
Whenever I want to call any function from touchUp or touchMoved, sometimes
it just call it as soon I touchdown or sometimes it doesn't call at all
(for example :- I want to print anything on touchMove or sometimes touchUp
it will just print as soon I touch down)
Like I said I'm just a beginner, appreciate if you can assist me Thanks in
advance


Reply to this email directly or view it on GitHub
#1.

@JugalRupela
Copy link
Author

I'm using windows 10, with Dell Touch monitor S2240T..

@micuat
Copy link

micuat commented Mar 29, 2016

Hi, I don't know if this is related or not, but I found ofApp::touchDown(...) was called several times upon a single touch (id is always the same), and same for ofApp::touchMoved(...). I solved the problem by comparing x,y values in ofApp::touchDown(...) but it will be nice to solve it in the event handler. I feel like this may be an issue with Windows API.

I'm using Surface Pro 2 with Windows 10.

@mccap079
Copy link

mccap079 commented May 6, 2019

Win10 with external 3M touch display, can confirm touch events are called twice per touch with matching touch.id.

@griv
Copy link

griv commented Oct 17, 2020

I just hit the double touchDown issue today. Solved it by adding a check to see if the touch.id is already in the touchMap.

if (touchMap.find(touch.id) == touchMap.end()) { touchMap[touch.id] = touch; }

@nneonneo
Copy link
Owner

@griv do you want to submit a PR to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants