i was making a project in Snap! and wondered if multitouch support was half implemented, as in
& report ONE value, but the will occur whenever a finger touches the screen, without caring if two or more fingers are touching the screen.
That wasn't the case, and I knew morphic.js very well by then, and I found the code, and rewrote it so it supports multi-touch.
Here it is: Morphic! but with multi-touch support. Hopefully someone puts this in the main Snap! source.
How the multitouch works is that the World has a list of hands.
And when a new finger touches the screen, a new hand is created for that finger and that finger ALONE. That new hand gets added to the list of hands in the World. Whenever something happens, the hand is retrieved from the list by searching the list of hands for a hand that has the same pointerId as the touch.
I mean, one hand can't be doing 20 things now can it?
if you would like to use this fancy multitouch here it is: Multi-Touch Snap!
Your modified morphic.js has problems you cannot scroll things like in the sensing category I cannot scroll down or other categories that require scrolling
because i'm using chrome on an iPad to test this right now, it seems that for iOS and iOS alone, it just creates new hands, fixing that. then i'll move onto fixing the hand not moving.
I think we should work together sometime on a snap! Mod because we both know javascript very well (you might even know a little more than me) but some other time we should work together