Skip to content

Commit 1f1cdcf

Browse files
committed
Speed reset on right-click if pressed speed is enabled
1 parent 011f901 commit 1f1cdcf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/basegui.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4923,6 +4923,11 @@ void BaseGui::leftButtonReleaseFunction() {
49234923

49244924
void BaseGui::rightClickFunction() {
49254925
qDebug("BaseGui::rightClickFunction");
4926+
if (pref->enable_pressed_speed) {
4927+
if (core->mset.speed != 1.0) {
4928+
core->setSpeed(1.0);
4929+
}
4930+
}
49264931

49274932
if (!pref->mouse_right_click_function.isEmpty()) {
49284933
processFunction(pref->mouse_right_click_function);

0 commit comments

Comments
 (0)