[bugfix] Fix missing threshold construction (#45)

This commit is contained in:
Rico Tiongson 2019-02-07 22:18:50 +08:00 committed by GitHub
parent b5c701994b
commit 3a0e1361c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,7 @@ namespace comfortable_swipe::gesture
const char* down4 /* 111 */ const char* down4 /* 111 */
): ):
comfortable_swipe::gesture::xdo_gesture(), comfortable_swipe::gesture::xdo_gesture(),
threshold_squared(threshold*threshold),
commands(new const char*[8]{left3, left4, right3, right4, up3, up4, down3, down4}) commands(new const char*[8]{left3, left4, right3, right4, up3, up4, down3, down4})
{ } { }