Use friction & velocity based on window size
Merge pull request #2 from MHOOO/patch-1

Use friction & velocity based on window size