summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--logic/work.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/work.cpp b/logic/work.cpp
index 99e4f709..090158eb 100644
--- a/logic/work.cpp
+++ b/logic/work.cpp
@@ -66,8 +66,8 @@ Work::Work(Mappings& m, event_handler& ev, QFrame* frame, std::shared_ptr<dylib
sc(std::make_shared<Shortcuts>()),
keys {
#if defined OTR_HAS_KEY_UP_SUPPORT
- key_tuple(s.key_center1, [&](bool x) { tracker->set_held_center(x); }, false),
- key_tuple(s.key_center2, [&](bool x) { tracker->set_held_center(x); }, false),
+ key_tuple(s.key_center1, [&](bool x) { tracker->set_center(); tracker->set_held_center(x); }, false),
+ key_tuple(s.key_center2, [&](bool x) { tracker->set_center(); tracker->set_held_center(x); }, false),
#else
key_tuple(s.key_center1, [&](bool) { tracker->set_center(); }, true),
key_tuple(s.key_center2, [&](bool) { tracker->set_center(); }, true),