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

Commit 83745867 authored by Timi Rautamäki's avatar Timi Rautamäki
Browse files

Gallery2: ensure seek gesture happens in allowed area

mFullRect is the rect where seek gesture is allowed.

Change-Id: Ic59f06c6e35c41da3202e129ab0fb179b6c95db2
parent 52ef4282
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -190,7 +190,9 @@ public class GestureController {
        float currentX = currentEvent.getX();
        float currentY = currentEvent.getY();
        if (Math.abs(currentX - startX) >= GESTURE_THRESHOLD) {
            if (mFullRect.contains((int) startX, (int) startY)) {
                return Type.SEEK;
            }
        } else if (Math.abs(currentY - startY) >= GESTURE_THRESHOLD) {
            if (mBrightnessRect.contains((int) startX, (int) startY)) {
                return Type.BRIGHTNESS;