From 228f6ba4179dd6f93e0b0f185f4dd019a30ff590 Mon Sep 17 00:00:00 2001 From: Chrys Date: Thu, 22 Aug 2019 22:33:35 +0200 Subject: [PATCH] be more accurate --- src/fenrirscreenreader/screenDriver/vcsaDriver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fenrirscreenreader/screenDriver/vcsaDriver.py b/src/fenrirscreenreader/screenDriver/vcsaDriver.py index 7e679530..f25bf245 100644 --- a/src/fenrirscreenreader/screenDriver/vcsaDriver.py +++ b/src/fenrirscreenreader/screenDriver/vcsaDriver.py @@ -165,7 +165,8 @@ class driver(screenDriver): continue elif lastScreenContent == b'': lastScreenContent = screenContent - if abs( int(screenContent[2]) - int(lastScreenContent[2])) in [1]: + if (abs( int(screenContent[2]) - int(lastScreenContent[2])) in [1,2]) and \ + (abs( int(screenContent[3]) == int(lastScreenContent[3]))): # Skip X Movement pass elif abs( int(screenContent[3]) - int(lastScreenContent[3])) in [1]: