Commit 4f9b6c6b authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Allow seeking by clicking on zoombar when not zoomed

Fixes #1249
parent deb51c9f
......@@ -335,6 +335,10 @@ void KeyframeView::mousePressEvent(QMouseEvent *event)
if (m_hoverZoom) {
m_clickOffset = (double(event->x()) - m_offset) / (width() - 2 * m_offset);
}
// When not zoomed, allow seek by clicking on zoombar
if (qFuzzyCompare(m_zoomFactor, 1.) && pos != m_position) {
emit seekToPos(pos);
}
return;
}
} else if (event->button() == Qt::RightButton && event->y() > m_zoomHeight + 2) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment