OSDN Git Service

Add scrolling support with a mouse wheel
authorOlivier Gay <ogay@logitech.com>
Fri, 12 Sep 2014 13:28:47 +0000 (15:28 +0200)
committerOlivier Gay <ogay@logitech.com>
Fri, 19 Sep 2014 22:59:26 +0000 (00:59 +0200)
commitfa85c84f2ae41198caadf6bcc890186dbaf3af4b
tree5ced8f7fe7ee52f740e1344441941fdbccea45b1
parentece4866dc575b956801f6dab2d6c4923e272c5fa
Add scrolling support with a mouse wheel

When a physical mouse is connected, support scroll events
from the mouse when pictures are displayed. In film strip
view (full screen or not), both vertical and horizontal
scroll events have the same bevahior: pictures are
horizontally scrolled. In full screen, pictures are flinged.
When a picture is zoomed the scroll is done either
vertically or horizontally depending on user action.

Change-Id: Idb3b12b0ff86e8a590fa7f1a54111700db84e543
Signed-off-by: Olivier Gay <ogay@logitech.com>
src/com/android/camera/ui/FilmStripGestureRecognizer.java
src/com/android/camera/ui/FilmStripView.java