improved snapping

This commit is contained in:
itsmattkc
2018-06-22 12:52:07 -07:00
parent 77682e5796
commit 2fbd9835a3
11 changed files with 178 additions and 38 deletions
+1 -3
View File
@@ -17,9 +17,7 @@ TimelineHeader::TimelineHeader(QWidget *parent) : QWidget(parent)
void set_playhead(QMouseEvent* event) {
long frame = panel_timeline->getFrameFromScreenPoint(event->pos().x());
if (panel_timeline->snapping) {
panel_timeline->snap_to_clip(&frame);
}
panel_timeline->snap_to_clip(&frame, false);
panel_timeline->seek(frame);
panel_timeline->repaint_timeline();
}