Revert "Change swipe algorithm"

This reverts commit 580323c96a4d53b5a0c52e57c11a222dc98791c6.