04-01-2012 02:30 AM
The problem I am having is if you swipe quickly and lightly from the screen to a bezel on any side, my 'onRelease' functions are not getting called...
I am guessing 1 of 2 things is happening:
1. It is fooled into thinking the user is still pressing, and so it continues to call my 'onBegin' function
2. There is a different event that is occuring which I am not monitoring for.
I am monitoring these touch events:
Please help! This is driving me nuts.
04-04-2012 03:56 AM
does it have to be touchevents? i'm having an application where you can drag qnx.ui.containers around, and i'm using this
this.addEventListener(MouseEvent.MOUSE_DOWN, onBegin); this.addEventListener(MouseEvent.MOUSE_UP, onEnd); this.addEventListener(MouseEvent.MOUSE_OUT, onEnd);
i had the same problem as you, if i remember correctly, that's why i had to add MOUSE_OUT.
the reason for the mouseevents is because in the first versions of the sdk, there were no working touchevents
04-05-2012 01:46 AM - edited 04-05-2012 02:49 AM
This solved my issue, but created a new one
My app has controls on the left and right side of the tablet. I added the mouse events to the left side, and the right side still uses touch events.
So now if you press the right side controls first, the mouse cursor will stay on that side and ignore when you press on the left controls.
Is it the containers you are referring to that would stop this issue with the mouse?
04-05-2012 06:54 AM - edited 04-05-2012 06:56 AM
i guess that happens because of the mouse events. because for the mouse, there's always just one single reference point. the containers wouldn't help
so if you have multitouch, i guess you must use touch events :/
btw, have you tried monitoring TOUCH_OUT ?
04-10-2012 11:04 AM