d4nyll/lethargy

What options works best for you?

d4nyll opened this issue · 2 comments

There are three options you can specify with lethargy, but I find the defaults works fine. If you think the defaults does not work well for you, please post here to tell us which devices it _doesn't_ work well, and also which settings _does_ work well. Many thanks!

The problem I'm having is that the defaults work really well on MacOS but when I use the same defaults with the same mouse on Windows, it doesn't detect the scrolling as well.

I'm not really sure how I'm going to fix that.

@jwmann How lethargy works should be independent the operating system (OS), however, most macOS users use Apple products (like the Magic Mouse and Trackpads) and they have a different 'profile' than the mouse and trackpads found elsewhere.

Therefore, you might find it useful to try to figure whether the user is using macOS, and use one set of defaults; for other OSes, you can use another set of defaults. Your browser reveals a lot about you - see https://amiunique.org/fp. You may want to use, for instance, window.navigator.platform. Of course, no method of identifying the platform (or user agent, for that matter) is reliable; so your mileage may vary.

At the end of the day, there are no perfect solution that works 100% of the time. The best you can do is make it better.