bugfix: check two frames prior, not one frame prior
0.1.1
fix for old_resting_y. thanks @deathcap!
0.1.2
Fix old_resting_y variable reference