objective c - How can I match UITouch objects in Obj-C with corresponding touch objects in WebKit JavaScript? -
i can't figure out way match uitouch objects in uikit corresponding touch objects in javascript.
for uitouch, 1 typically uses value returned hash message identify uitouch instance across touch phases. in html / javascript, touch.identifier used , guaranteed unique number across multiple touches.
however, numbers returned [auitouch hash] , atouch.identifier not related. ideas on how can match touch objects received in javascript notifications uitouch objects received in obj-c?
thanks.
the solution came store uitouch objects in dictionary using key derived location. so, touch occurred @ x 120 y 200 stored using key "120:200". happens when overriding sendevent method of main window class.
i add information these touches (in case, radius of touch area) , push them dictionary in javascript runtime using similar scheme. in general positions reported webkit match reported window class, javascript runtime able use current location of touch hash lookup touch radius.
Comments
Post a Comment