Circular buffer in stop gesture