[orca] Filter out mouse-abs event spam
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Filter out mouse-abs event spam
- Date: Wed, 20 Nov 2019 23:05:22 +0000 (UTC)
commit 4f37bef3ea857e6c0826dfb65fededa2d5fe7398
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Nov 20 18:05:04 2019 -0500
Filter out mouse-abs event spam
src/orca/mouse_review.py | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/orca/mouse_review.py b/src/orca/mouse_review.py
index a9a7140b8..97084eccc 100644
--- a/src/orca/mouse_review.py
+++ b/src/orca/mouse_review.py
@@ -191,6 +191,11 @@ class _ItemContext:
debug.println(debug.LEVEL_INFO, msg, True)
return False
+ if self._x == prior._x and self._y == prior._y:
+ msg = "MOUSE REVIEW: Treating as duplicate: mouse didn't move"
+ debug.println(debug.LEVEL_INFO, msg, True)
+ return True
+
interval = self._time - prior._time
if interval > 0.5:
msg = "MOUSE REVIEW: Not a duplicate: was %.2fs ago" % interval
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]