mouse event does not seem to have effect
hi, I am making a game that uses a virtual joystick. In the pc it works fine, but there is a problem testing in the pc as the pc does not have a touch screen, so mouse down is not the same in the pc as the touch screen (for example)
the thing is, recently I started debugging it in an android device. It works fine except for one thing: when the user lifts the finger, the joystick is supposed to reset itself (working as an autocenter). Instead, the joystick remains in the last position of the finger, without centering itself.
The same handler is linked to the joystick object, and it works fine in the 'mouse_out' event, but not when the finger is lifted. I tried moving from 'joystick.addEventListener' to stage.addEventListener, though it should not make a difference, since to lift the finger outside the joystick first it would have had to be moved out, but I did it anyway. The handler does not contain any guard as ''if (event.target != event.currentTarget)" or something like that. once again, the code in the handler is fine, as it works in the move out event; also, I use similar handlers for the stage in different frames (and remove those when exiting the frame), and those work fine.
Any pointers as to why the handler does not work when lifting the finger, neither linked to the joystick or stage objects, yet similar handlers work in stage in different frames, or the same handler works as a move out from the joystick?
tnx
edit, to clear out: when I drag or slide the finger outside the joystick area, it autocenters (the 'move out' handler is called), but when I lift the finger, the joystick remains in the same position it had before lifting the finger, till I touch somewhere else in the screen