Offset Of HitArea After Zooming And Scrolling
What will be the offset of the getHitRect after zooming and scrolling. Offset of the hit area after zoom can be calculated - (event.getX() / ZoomLayout.mScaleFactor + ZoomLayout.mC
Solution 1:
You need to translate the canvas during the scroll functionality. I have done it in this way in my code:
canvas.translate(getScrollX(), getScrollY());
getScrollX and Y are the amount of scroll.
Post a Comment for "Offset Of HitArea After Zooming And Scrolling"