From 14bcc38fa57dcc1ae738788947057585ebd7536a Mon Sep 17 00:00:00 2001 From: Rico Tiongson Date: Thu, 7 Feb 2019 22:18:18 +0800 Subject: [PATCH] [bugfix] Fix missing threshold construction --- src/lib/gesture/swipe_gesture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/gesture/swipe_gesture.cpp b/src/lib/gesture/swipe_gesture.cpp index 53ab535..1340a54 100644 --- a/src/lib/gesture/swipe_gesture.cpp +++ b/src/lib/gesture/swipe_gesture.cpp @@ -47,6 +47,7 @@ namespace comfortable_swipe::gesture const char* down4 /* 111 */ ): comfortable_swipe::gesture::xdo_gesture(), + threshold_squared(threshold*threshold), commands(new const char*[8]{left3, left4, right3, right4, up3, up4, down3, down4}) { }