Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 379232c8 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Fix issue #2512131: Trackball goes up when moving"

parents 1afd1c90 7d9af5ae
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -60,6 +60,7 @@ public class PointerLocationView extends View {
    
    public PointerLocationView(Context c) {
        super(c);
        setFocusable(true);
        mVC = ViewConfiguration.get(c);
        mTextPaint = new Paint();
        mTextPaint.setAntiAlias(true);
@@ -350,4 +351,11 @@ public class PointerLocationView extends View {
        addTouchEvent(event);
        return true;
    }

    @Override
    public boolean onTrackballEvent(MotionEvent event) {
        Log.i("Pointer", "Trackball: " + event);
        return super.onTrackballEvent(event);
    }
    
}
+0 −2
Original line number Diff line number Diff line
@@ -839,8 +839,6 @@ public abstract class KeyInputQueue {
                                        addLocked(di, curTimeNano, ev.flags,
                                                RawInputEvent.CLASS_TRACKBALL, me);
                                    }
                                    
                                    ms.finish();
                                }
                            }
                        }