pilotmoon / Scroll-Reverser

Per-device scrolling prefs on macOS.
https://pilotmoon.com/scrollreverser/
Apache License 2.0
2.6k stars 140 forks source link

Scroll reverser closes when laptop goes to sleep #150

Open ijhua opened 2 years ago

ijhua commented 2 years ago

Every time I close my laptop lid and come back, Scroll Reverser closes itself and I have to open it again.

I've also enabled start at login, but it doesn't start by itself.

myriasofo commented 2 years ago

+1 Just commenting that I also have this issue

pilotmoon commented 1 year ago

Scroll Reverser does quit and restart itself after waking from sleep, as a workaround to a macOS bug where macOS can stop sending events after it awakes. It sounds like it is doping the quitting but not the restarting.

This is the part of the code that does the relaunching: https://github.com/pilotmoon/Scroll-Reverser/blob/master/AppDelegate.m#L94-L112