fixed bug not using configured distance values for wipe gestures
authorHolger Schemel <info@artsoft.org>
Wed, 23 Nov 2016 19:43:22 +0000 (20:43 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 23 Nov 2016 19:43:22 +0000 (20:43 +0100)
src/events.c

index 6b121531fd3a10f492a650b880a0c5e18f39c097..79821e98825ac7bc4b1bfa933d49b97952fd6b8e 100644 (file)
@@ -565,8 +565,8 @@ void HandleFingerEvent(FingerEvent *event)
   static float button_x1, button_y1;
   static SDL_FingerID motion_id = -1;
   static SDL_FingerID button_id = -1;
-  int move_trigger_distance_percent = 2;   // percent of touchpad width/height
-  int drop_trigger_distance_percent = 5;   // percent of touchpad width/height
+  int move_trigger_distance_percent = setup.touch.move_distance;
+  int drop_trigger_distance_percent = setup.touch.drop_distance;
   float move_trigger_distance = (float)move_trigger_distance_percent / 100;
   float drop_trigger_distance = (float)drop_trigger_distance_percent / 100;
   float event_x = event->x;