[orca] Mouse Review: See if the pointer moved before looking for descendants
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Mouse Review: See if the pointer moved before looking for descendants
- Date: Mon, 28 Oct 2019 15:02:43 +0000 (UTC)
commit a3b20a39c4a90c31a664caa2ab8b94d98afc8997
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Oct 28 11:02:17 2019 -0400
Mouse Review: See if the pointer moved before looking for descendants
src/orca/mouse_review.py | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/orca/mouse_review.py b/src/orca/mouse_review.py
index 943d9a209..6787a1ed0 100644
--- a/src/orca/mouse_review.py
+++ b/src/orca/mouse_review.py
@@ -494,6 +494,12 @@ class MouseReviewer:
if script.utilities.inDocumentContent():
document = script.utilities.activeDocument()
+ screen, nowX, nowY = self._pointer.get_position()
+ if (pX, pY) != (nowX, nowY):
+ msg = "MOUSE REVIEW: Pointer moved again: (%i, %i)" % (nowX, nowY)
+ debug.println(debug.LEVEL_INFO, msg, True)
+ return
+
obj = script.utilities.descendantAtPoint(menu, pX, pY) \
or script.utilities.descendantAtPoint(document, pX, pY) \
or script.utilities.descendantAtPoint(window, pX, pY)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]