israelCanul / rokon

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

Scene onTouchUp #113

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.override onTouchUp and handleTouch functions in my subclass of Scene
2.Debug.print("handleTouch action="+event.getAction()); in handleTouch
3.Debug.print("onTouchUp"); in onTouchUp function

What is the expected output?
handleTouch action=0
handleTouch action=1
onTouchUp

What do you see instead?
Sometimes(not always) print:
handleTouch action=0
onTouchUp
handleTouch action=1
onTouchUp

What version of Rokon are you using?
2.0.3

On which version of Android are you experiencing this?
emulator 1.5

Please provide any additional information below.
Sometimes onTouchUp is called twice when I click on the screen once, this is 
not what I expect. It's strange that sometimes it works well, and sometimes it 
breaks.

Original issue reported on code.google.com by rayjun...@gmail.com on 12 Jul 2010 at 7:25

GoogleCodeExporter commented 8 years ago
It's recommended that you just use the Rokon functions, 
onTouchUp/onTouchDown/onTouchMove, however I don't think that has anything to 
do with why it's called twice.
Or maybe it does, they might be interfering with each other or whatever, try 
removing handleTouch and see what happens.

Original comment by anton.he...@gmail.com on 12 Jul 2010 at 1:04

GoogleCodeExporter commented 8 years ago
i only override onTouchUp, the bug is still there!

Original comment by rayjun...@gmail.com on 13 Jul 2010 at 1:27

GoogleCodeExporter commented 8 years ago
Hmm... that's kind of odd, it doesn't happen for me.
Mind posting your full source?

Original comment by anton.he...@gmail.com on 13 Jul 2010 at 7:39

GoogleCodeExporter commented 8 years ago
Doesn't happen here either, still not owkring for you ray_jun?

Original comment by rtaylor205@gmail.com on 25 Jul 2010 at 8:40

GoogleCodeExporter commented 8 years ago

Original comment by rtaylor205@gmail.com on 25 Jul 2010 at 8:41

GoogleCodeExporter commented 8 years ago
I'll run my game on the device later when I get a android phone, if it works 
well on the device, then maybe something weird happens with my mouse click on 
the emulator.

Original comment by rayjun...@gmail.com on 26 Jul 2010 at 3:31

GoogleCodeExporter commented 8 years ago
i have run my game on samsung i5700, it works well on touching.This isn't a bug

Original comment by rayjun...@gmail.com on 28 Jul 2010 at 12:37

GoogleCodeExporter commented 8 years ago

Original comment by rtaylor205@gmail.com on 17 Aug 2010 at 8:07