Commit f2e6115
committed
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: I00be09a63c40caa8fce94134c57db0894a62fef01 parent bf5740e commit f2e6115
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6441 | 6441 | | |
6442 | 6442 | | |
6443 | 6443 | | |
6444 | | - | |
6445 | | - | |
6446 | | - | |
| 6444 | + | |
| 6445 | + | |
| 6446 | + | |
| 6447 | + | |
| 6448 | + | |
| 6449 | + | |
| 6450 | + | |
6447 | 6451 | | |
6448 | 6452 | | |
6449 | 6453 | | |
| |||
0 commit comments