开发者

iphone touch offset in uiwebview

开发者 https://www.devze.com 2022-12-27 00:07 出处:网络
I am currently experimenting with canvas drawing function in a uiwebview.Its a simple app that allows 开发者_Python百科you to finger paint on the Iphone.Can someone point me in the rite direction on a

I am currently experimenting with canvas drawing function in a uiwebview.Its a simple app that allows 开发者_Python百科you to finger paint on the Iphone.Can someone point me in the rite direction on a problem I'm having.I need to be able to offset the touch so you can see what your painting instead of your finger being in the way.Its built on Html,javascript and css.Any ideas would be greatly appreciated.


On Touch Event Get The X and Y coordinates.... of the Touched place

Remove Some Pixels (Let's say 10) from Y Coordinate (Y-10) change the color of that Particular Place.... or something else to show drawing...

0

精彩评论

暂无评论...
验证码 换一张
取 消