Commit a3b20a39 authored by Joanmarie Diggs's avatar Joanmarie Diggs

Mouse Review: See if the pointer moved before looking for descendants

parent da8c7826
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment