I have an image that I am able to zoom and pan but it can pan off the screen. I based my code off of the Android Developers blog about multitouch.
When I added: if (mPosX > 0) mPosX = 0; if (mPosY > 0) mPosY = 0; It now stops where the left and top borders of image are touching the top and left sides of the displays border and won't pan off the screen. Anybody know of a way to get the image to stop panning off the screen and still allow zoom? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en