canvas.scale(scale,scale,px,py) jerks to a new position
问题 I am trying to use both scalegesture listener and gesturelistener in the view. Everything works perfectly if the scale is 1 but if the scale is set to some other value, the image jerks to a new position and then scales smoothly. Part of my code looks like as follows: public class SimpleView extends View { Bitmap image; ScaleGestureDetector scaleGesture; GestureDetector gestures; float touchX, touchY; float horizontalOffset; float verticalOffset; float scale; public SimpleView(Context context)