OSDN Git Service

Support scrolling layers with the mousewheel
authorJohn Reck <jreck@google.com>
Tue, 21 Aug 2012 00:13:47 +0000 (17:13 -0700)
committerJohn Reck <jreck@google.com>
Tue, 21 Aug 2012 00:13:47 +0000 (17:13 -0700)
commitf2e6115404dbd211ddef223e2b380cefd999aac4
tree00e31a9d5957eb36e08025f4951c20af9246d3ca
parentbf5740e75efd87ae0213486e78e029403804c6f0
Support scrolling layers with the mousewheel

 Bug: 6635437
 Fix onGenericAction to support scrolling layers.
 Calling startScrollingLayer detects if there is a layer under
 the mouse pointer, and if so switches to DRAG_LAYER_MODE. Then, calling
 doDrag will correctly handle scrolling the layer in DRAG_LAYER_MODE,
 switching out of DRAG_LAYER_MODE when we hit the end of a layer, and
 scrolling the page if there isn't a layer. It is the method used
 by the touch drag path.

Change-Id: I00be09a63c40caa8fce94134c57db0894a62fef0
core/java/android/webkit/WebViewClassic.java