diff options
Diffstat (limited to 'src/evdev.c')
-rw-r--r-- | src/evdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c index 39c274b..9f5d160 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -300,7 +300,7 @@ EvdevReadInput(InputInfoPtr pInfo) if (pEvdev->tool) { /* meaning, touch is active */ if (pEvdev->old_x != -1) dx = pEvdev->abs_x - pEvdev->old_x; - if (pEvdev->old_x != -1) + if (pEvdev->old_y != -1) dy = pEvdev->abs_y - pEvdev->old_y; pEvdev->old_x = pEvdev->abs_x; pEvdev->old_y = pEvdev->abs_y; |