[orca] Present the line at the pointer if the object hasn't changed but the line has



commit 149e5cf7f8ebc8ec71f26caff3e9a359179c828e
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Jul 8 19:47:29 2019 -0400

    Present the line at the pointer if the object hasn't changed but the line has

 src/orca/mouse_review.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/mouse_review.py b/src/orca/mouse_review.py
index 523b10c78..77a48fb6e 100644
--- a/src/orca/mouse_review.py
+++ b/src/orca/mouse_review.py
@@ -478,7 +478,7 @@ class MouseReviewer:
         x, y, width, height = self._currentMouseOver.getBoundingBox()
         if y <= pY <= y + height:
             boundary = pyatspi.TEXT_BOUNDARY_WORD_START
-        elif x <= pX <= x + width:
+        elif obj == self._currentMouseOver.getObject():
             boundary = pyatspi.TEXT_BOUNDARY_LINE_START
 
         new = _ItemContext(pX, pY, obj, boundary, window, script)


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