OSDN Git Service

Improve scale gesture snapback.
authorChih-Chung Chang <chihchung@google.com>
Wed, 30 May 2012 22:47:44 +0000 (15:47 -0700)
committerWu-cheng Li <wuchengli@google.com>
Thu, 31 May 2012 06:03:04 +0000 (14:03 +0800)
commit192b7f1ddf08e7bfa0c65dbf61edb81ebb5a0998
tree73faffeadee9b247106b754c8424cee1def9d62e
parentf3f90752ca92372d61ca0ec22a9846261cfbcbde
Improve scale gesture snapback.

If the picture is zoomed-in, we want to keep the focus point stay in
the same position on screen, so we need to adjust the target mCurrentX
value.

Bug: 6563619
Change-Id: I87b23da99aced1490187e550bd43fad733122577
src/com/android/gallery3d/ui/PositionController.java