hiteshsuthar / rokon

Automatically exported from code.google.com/p/rokon
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

ontouchup function in RokonActivity is wrong #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

ontouchup function in RokonActivity  is  wrong

my hand touch hold on the screen, but always have the ontouchup fucntion
executed.

I read the source code, find, 

            if(_touchDown && Rokon.realTime >= _lastTouchTime + TOUCH_THRESHOLD) {
                if(_lastHotspot != null) {
                    _touchDown = false;
                    onHotspotTouchUp(_lastHotspot);
                    onTouchUp(_touchX, _touchY, true);
                    _lastHotspot = null;
                } else {
                    _touchDown = false;
                    onTouchUp(_touchX, _touchY, false);
                }
            }

and 

public final static int TOUCH_THRESHOLD = 100;

Do you mean that,

After your touch the screen, then after 0.1 second, touch up should happen?

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by read010...@gmail.com on 30 Dec 2009 at 1:42

GoogleCodeExporter commented 8 years ago
As mentioned in the discussion group, my bad, should have be rewritten a while 
back.

Original comment by rtaylor205@gmail.com on 31 Dec 2009 at 10:21

GoogleCodeExporter commented 8 years ago
I've rewritten how touch is recognised (not using the timed rubbish) let me 
know if 
that cures your problems

See r88

thanks

Original comment by rtaylor205@gmail.com on 1 Jan 2010 at 7:28