cubic bezier curve for swipe gesture