- Added scroll direction change threshold (by @ivribalko) - Fixed restoring scroll position sometimes didn't work