I have an interesting problem which I would welcome some advice on. I have some code that I have used before which allows people to sign the screen. The code is simple enough and captures the movement by detecting the event.move phase. Whilst in this phase the code draws a line from the last phase x and y to the new x and y. You end up with a pretty good signature capture. I then save the group as a jpeg and the signature is saved.
Now, I went to embed this code into a scrollView widget. What is happening now is that the move phase is not showing up on my code anymore. I suspect it is appearing against the scroll view.
A work around for me is to open an overlay and get them to sign this, however back in my java script days you used to be able to cancel event bubbling. The idea being that when you had objects on top of other objects you could stop the events being passed through.
In this example I think I have my scroll view. Inserted into this is my signature group. If I could stop the events being passed through to the scroll view for my signature group then it would work.
Has anyone come across this before and have any good ways of stopping events being passed through the groups? I have noticed it before when I have a button in a scroll view. If you check for event.phase = ended it will not be caught as you only ever get the began phase. Not an issue as you test for began, but the movement phase is important for the signature to work.
Any help anyone has would be great…