Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set offset to zero if null for movRel(None,None) #691

Closed
wants to merge 1 commit into from

Conversation

JayRizzo
Copy link
Contributor

When calling _normalizeXYArgs(xOffset, yOffset) if None is passed for both values the offset is returned with position(x,y) of where the mouse currently is.

# line 655
    if firstArg is None and secondArg is None:
        return position()

This was updated for dragRel() & mouseMoveDrag() & displayMousePosition() but not for movRel().

Therefore artificially moving the mouse dramatically off the screen depending on location of starting position.

This fixes the issue.

when calling normalizeXYArgs() if None is passed for both values the offset is returned with position(x,y) of where the mouse currently is.  This was updated for dragRel() & mouseMoveDrag() & displayMousePosition() but not for movRel()
@JayRizzo JayRizzo closed this May 27, 2022
@JayRizzo JayRizzo deleted the fix_690 branch May 27, 2022 18:16
@JayRizzo JayRizzo restored the fix_690 branch May 27, 2022 18:34
@JayRizzo JayRizzo deleted the fix_690 branch May 27, 2022 18:35
@JayRizzo JayRizzo restored the fix_690 branch May 27, 2022 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant