Figured out a quick implementation of doubletap and snapto. snapto alg needs work still.