From 4444a90aa242cc88af090f40216f47b409945491 Mon Sep 17 00:00:00 2001 From: Chrys Date: Fri, 23 Aug 2019 00:01:44 +0200 Subject: [PATCH] hardern heuristic even more --- src/fenrirscreenreader/screenDriver/vcsaDriver.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fenrirscreenreader/screenDriver/vcsaDriver.py b/src/fenrirscreenreader/screenDriver/vcsaDriver.py index 07d22def..db8ba792 100644 --- a/src/fenrirscreenreader/screenDriver/vcsaDriver.py +++ b/src/fenrirscreenreader/screenDriver/vcsaDriver.py @@ -167,10 +167,11 @@ class driver(screenDriver): if lastScreenContent == b'': lastScreenContent = screenContent if (abs( int(screenContent[2]) - int(lastScreenContent[2])) in [1,2]) and \ - (abs( int(screenContent[3]) == int(lastScreenContent[3]))): + (int(screenContent[3]) == int(lastScreenContent[3])): # Skip X Movement pass - elif abs( int(screenContent[3]) - int(lastScreenContent[3])) in [1]: + elif (abs( int(screenContent[3]) - int(lastScreenContent[3])) in [1]) and \ + (int(screenContent[2]) == int(lastScreenContent[2])): # Skip Y Movement pass else: