summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DragController.java
diff options
context:
space:
mode:
authorMindy DelliCarpini <mindyp@google.com>2013-07-03 08:23:13 -0700
committerMindy DelliCarpini <mindyp@google.com>2013-07-03 14:28:32 -0700
commit53b8d071ce63b2b55fa8bdc71488c44308bfcf2f (patch)
treec75d766c9b439c140f975b82924cffb2a9cc02b5 /src/com/android/launcher3/DragController.java
parentfe7750b5d6cb76a3aa7b1b479e4cc243653fa0c1 (diff)
downloadandroid_packages_apps_Trebuchet-53b8d071ce63b2b55fa8bdc71488c44308bfcf2f.tar.gz
android_packages_apps_Trebuchet-53b8d071ce63b2b55fa8bdc71488c44308bfcf2f.tar.bz2
android_packages_apps_Trebuchet-53b8d071ce63b2b55fa8bdc71488c44308bfcf2f.zip
Use autoscroller to handle drag scrolling
Change-Id: Ie094cbfa91f898133f84ad9ffc349d8cfa07e668
Diffstat (limited to 'src/com/android/launcher3/DragController.java')
-rw-r--r--src/com/android/launcher3/DragController.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/com/android/launcher3/DragController.java b/src/com/android/launcher3/DragController.java
index 54f7dbc15..970ce2611 100644
--- a/src/com/android/launcher3/DragController.java
+++ b/src/com/android/launcher3/DragController.java
@@ -123,17 +123,16 @@ public class DragController {
* Interface to receive notifications when a drag starts or stops
*/
interface DragListener {
-
/**
* A drag has begun
- *
+ *
* @param source An object representing where the drag originated
* @param info The data associated with the object that is being dragged
* @param dragAction The drag action: either {@link DragController#DRAG_ACTION_MOVE}
* or {@link DragController#DRAG_ACTION_COPY}
*/
void onDragStart(DragSource source, Object info, int dragAction);
-
+
/**
* The drag has ended
*/
@@ -514,7 +513,6 @@ public class DragController {
if (delegate != null) {
dropTarget = delegate;
}
-
if (mLastDropTarget != dropTarget) {
if (mLastDropTarget != null) {
mLastDropTarget.onDragExit(mDragObject);
@@ -589,6 +587,7 @@ public class DragController {
} else {
mScrollState = SCROLL_OUTSIDE_ZONE;
}
+ handleMoveEvent(dragLayerX, dragLayerY);
break;
case MotionEvent.ACTION_MOVE:
handleMoveEvent(dragLayerX, dragLayerY);