Skip to content

disable_mouse_acceleration enables mouse acceleration after "with" block even when it was disabled before call #42

@SanjoSolutions

Description

@SanjoSolutions

See

def disable_mouse_acceleration():
set_win32_mouse_acceleration(False)
try:
yield
finally:
set_win32_mouse_acceleration(True)

Suggestion: Read out setting before changing it to false and only set it to true in finally when it was true before setting it to false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions