mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Fixing weird deferred click events after deleting folder
-> Fixing issue 5055487 Change-Id: I932f95f29322fa50035b13063ab51fad2d2217e8
This commit is contained in:
@@ -31,6 +31,7 @@ import android.view.ViewConfiguration;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
|
||||
import com.android.launcher.R;
|
||||
import com.android.launcher2.DropTarget.DragObject;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -81,7 +82,7 @@ public class DragController {
|
||||
*/
|
||||
private int mScrollZone;
|
||||
|
||||
private DropTarget.DragObject mDragObject = new DropTarget.DragObject();
|
||||
private DropTarget.DragObject mDragObject;
|
||||
|
||||
/** Who can receive drop events */
|
||||
private ArrayList<DropTarget> mDropTargets = new ArrayList<DropTarget>();
|
||||
@@ -275,6 +276,8 @@ public class DragController {
|
||||
|
||||
mDragging = true;
|
||||
|
||||
mDragObject = new DropTarget.DragObject();
|
||||
|
||||
mDragObject.dragComplete = false;
|
||||
mDragObject.xOffset = mMotionDownX - (dragLayerX + dragRegionLeft);
|
||||
mDragObject.yOffset = mMotionDownY - (dragLayerY + dragRegionTop);
|
||||
|
||||
Reference in New Issue
Block a user