Open renarsvilnis opened 7 years ago
Hi @renarsvilnis thank you very much for sharing your experience. I am not sure I understand you 100%, so I'll provide multiple responses, let me know if I hit the mark with any of them.
delta
values, which I have not encountered before. You might want to try a large tolerance value (e.g. 1
). If you expect your users to scroll quickly and want to register each one as an intent, you might want to try a low delay value (e.g. 50
). For example, your options might look like const lethargy = new Lethargy(6,100,1,50);
. See this jsFiddle.@d4nyll If I scroll with force on my mousewheel it gets scrolled in opposite direction which is something you can see on the right half of this image. On trackpad its working fine (left half). Any suggestion on how to improve it?
Hi, I came across an issue when using default settings and desktop mouse. If I scroll slowly on with mouse wheel, these events are marked as inertial.
Even if I switch scroll direction to opposite, it continues to be detected as inertial (
lethargy.check(ev) === false
).p.s. I'm using a modified version of the jsfiddle demo from
README.md
. I added lethargy with default settings and differentiate inertial events by coloring them red and normal events as gray.