diff --git a/selfdrive/debug/touch_replay.py b/selfdrive/debug/touch_replay.py index 1e1596d2640817..6e5ecbbe5b59e8 100755 --- a/selfdrive/debug/touch_replay.py +++ b/selfdrive/debug/touch_replay.py @@ -30,7 +30,7 @@ elif event.type == 3 and event.code == 57 and event.value == -1: fingers[current_slot] = [-1, -1] elif event.type == 3 and event.code == 53: - fingers[current_slot][1] = h - (h - event.value) + fingers[current_slot][1] = event.value if fingers[current_slot][0] != -1: touch_points.append(fingers[current_slot].copy()) elif event.type == 3 and event.code == 54: