[orca] Revert "Braille: Ensure focused region starts the display when panToCursor"



commit 7bcbd4400454978d8016ea8f1fca47ba4363785e
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Apr 25 15:26:09 2020 -0400

    Revert "Braille: Ensure focused region starts the display when panToCursor"
    
    This reverts commit 3e934f44655b88783b5fba6f0185410f6786faa8.
    
    There seems to be a side effect that when contracted braille is being used,
    repositionCursor is messing things up causing words in editable content to
    no longer be displayed. Until I get to the bottom of that problem, reverting
    this change.

 src/orca/braille.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/braille.py b/src/orca/braille.py
index 01db759a2..825f7d4bb 100644
--- a/src/orca/braille.py
+++ b/src/orca/braille.py
@@ -1180,7 +1180,10 @@ def refresh(panToCursor=True,
     # right of the display if we need to pan right.
     #
     if panToCursor and (cursorOffset >= 0):
-        if targetCursorCell:
+        if len(string) <= _displaySize[0] \
+           and cursorOffset < _displaySize[0]:
+            viewport[0] = 0
+        elif targetCursorCell:
             viewport[0] = max(0, cursorOffset - targetCursorCell + 1)
         elif cursorOffset < viewport[0]:
             viewport[0] = max(0, cursorOffset)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]