[orca] Chromium: Fix bug with flat-review clicking
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Chromium: Fix bug with flat-review clicking
- Date: Thu, 22 Aug 2019 22:50:22 +0000 (UTC)
commit 2e8e69adbb2d1ce1ef1ccfcfd46abff33cc2b167
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Aug 22 18:48:47 2019 -0400
Chromium: Fix bug with flat-review clicking
Be sure we have valid character extents before clicking on a character.
src/orca/flat_review.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/flat_review.py b/src/orca/flat_review.py
index b795aaaab..4ca322038 100644
--- a/src/orca/flat_review.py
+++ b/src/orca/flat_review.py
@@ -921,7 +921,7 @@ class Context:
def _getClickPoint(self):
string, x, y, width, height = self.getCurrent(Context.CHAR)
- if x < 0 and y < 0:
+ if (x < 0 and y < 0) or (width <= 0 and height <=0):
return -1, -1
# Click left of center to position the caret there.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]