Lethargy-ts has been rewritten to enhance accuracy, eliminate false positives, simplify internal logic, and reduce the package size.
What's changed?
- The package is now Pure ESM.
- The
inertiaDecay
andhighVelocity
options have been removed. - A new
increasingDeltasThreshold
option has been added. lethargy.check
no longer compares event vectors.- Passing "out of order" or "past" events to
lethargy.check
will now returnfalse
instead oftrue
. - React's
SyntheticEvent
can now be passed to thelethargy.check
method. #5 - Updated development dependencies.
- Updated dependencies in the demo.
Full Changelog: 0.0.5...0.1.0