File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -283,6 +283,7 @@ def launch(self):
283283 if touch .state and touch_start_time is None :
284284 touch_start_time = time .ticks_ms ()
285285 touch_start_x = touch .x
286+ last_touch_x = touch .x
286287 tap = True
287288
288289 elif touch .state :
@@ -301,12 +302,12 @@ def launch(self):
301302
302303 # If a touch is under this minimal distance it counts as a "stop spinning, darn it"
303304 if abs (touch_dist ) > 10 :
304- # Apply the touch speed with the direction multiplier from above
305- move -= math .radians (touch_speed )
306- if abs ( touch_speed ) > 0.5 :
307- friction = 0.98 # Normal friction ( the closer this is to 1 the longer it will take to slow down )
308- else :
309- friction = 0.8
305+ # Follow finger as it moves
306+ move = - math .radians (last_touch_x - touch . x ) * 0.12
307+ last_touch_x = touch . x
308+
309+ # Normal friction after touch ends ( the closer this is to 1 the longer it will take to slow down )
310+ friction = 0.8
310311
311312 else :
312313 # Pick the one you like best
You can’t perform that action at this time.
0 commit comments