Skip to content

Commit e911545

Browse files
committed
GUI - round BPM when scrubbing with the mouse
This behaviour matches that of Ableton Live's metronome
1 parent 9be60a3 commit e911545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/gui/qt/widgets/bpmscrubwidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ void BPMScrubWidget::mouseMoveEvent(QMouseEvent* event)
132132
}
133133

134134
if(scaled_diff != 0) {
135-
setDisplayAndSyncBPM(m_bpmValue + scaled_diff);
135+
setDisplayAndSyncBPM(std::round(m_bpmValue + scaled_diff));
136136
m_isEditing = false;
137137
QCursor::setPos(m_lastMouseClickGlobalPos);
138138
}

0 commit comments

Comments
 (0)