adamwulf / JotUI

OpenGL based drawing view built for and used by Loose Leaf for iPad
http://getlooseleaf.com/opensource/
MIT License
268 stars 28 forks source link

Line drawn on iPhone not where finger is #33

Open yusuftor opened 6 years ago

yusuftor commented 6 years ago

I have a UIJotView that covers the screen and nothing else. When I move the mouse on the simulator it draws perfectly. When I move my finger on my iPhone the line is always drawn about 20ish pixels to the top right of where my finger is. The distance away from my finger changes as I move across the device. Why is that?

adamwulf commented 6 years ago

When I see this, it's usually because the JotView has been resized with constraints or auto-layout to a different size that it was initialized with. Once the view has been created, it needs to keep its same size forever. if you need to get a different sized then you need to make a new JotUI view.