Revert default threshold to 0.0

This commit is contained in:
Rico Tiongson 2019-02-07 18:45:53 +08:00
parent 20832000fd
commit c8edfb4f74
3 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ Comfortable swipe makes use of keyboard shortcuts for configurations. The config
Property | Description | Default Value | Default Behavior Property | Description | Default Value | Default Behavior
--------- | ----------- | -------------- | ----- --------- | ----------- | -------------- | -----
threshold | mouse pixels to activate swipe; higher = less sensitive; floating-point (Note: Sky is the limit! Can be as large as 1000.0) | 20.0 threshold | mouse pixels to activate swipe; higher = less sensitive; floating-point (Note: Sky is the limit! Can be as large as 1000.0) | 0.0
left3 | 3-finger swipe left | ctrl+shift+Right | switch to right workspace left3 | 3-finger swipe left | ctrl+shift+Right | switch to right workspace
left4 | 4-finger swipe left | ctrl+alt+shift+Right | move window to right workspace left4 | 4-finger swipe left | ctrl+alt+shift+Right | move window to right workspace
right3 | 3-finger swipe right | ctrl+shift+Left | switch to left workspace right3 | 3-finger swipe right | ctrl+shift+Left | switch to left workspace

View File

@ -16,8 +16,8 @@
# #
# (Note: Sky is the limit! Can be as large as 1000.0) # (Note: Sky is the limit! Can be as large as 1000.0)
# #
# Default: threshold = 20.0 # Default: threshold = 0.0
threshold = 20.0 threshold = 0.0
############################# #############################
# THREE / FOUR FINGER SWIPE # # THREE / FOUR FINGER SWIPE #

View File

@ -42,7 +42,7 @@ namespace comfortable_swipe::service
// initialize swipe gesture handler // initialize swipe gesture handler
comfortable_swipe::gesture::swipe_gesture swipe comfortable_swipe::gesture::swipe_gesture swipe
( (
config.count("threshold") ? std::atof(config["threshold"].data()) : 0.0, config.count("threshold") ? std::stof(config["threshold"]) : 0.0,
config["left3"].c_str(), config["left3"].c_str(),
config["left4"].c_str(), config["left4"].c_str(),
config["right3"].c_str(), config["right3"].c_str(),