cleaned Y coordinates

This commit is contained in:
itsmattkc
2019-10-11 18:37:19 +11:00
parent 1ded30c1d9
commit 937acd4c8c
6 changed files with 8 additions and 32 deletions
+3 -4
View File
@@ -249,9 +249,9 @@ void TimelineWidget::PointerTool::ProcessDrag(const TimelineCoordinate &mouse_po
// Track movement is only legal for moving, not for trimming
ghost->SetTrackAdjustment(track_movement);
const TrackReference& track = ghost->GetAdjustedTrack();
ghost->SetY(parent()->GetTrackY(track));
ghost->SetHeight(parent()->GetTrackHeight(track));
ghost->SetYCoords(parent()->GetTrackY(track), parent()->GetTrackHeight(track));
break;
}
}
@@ -341,8 +341,7 @@ TimelineViewGhostItem* TimelineWidget::PointerTool::AddGhostFromNull(const ratio
ghost->SetIn(in);
ghost->SetOut(out);
ghost->SetTrack(track);
ghost->SetY(parent()->GetTrackY(track));
ghost->SetHeight(parent()->GetTrackHeight(track));
ghost->SetYCoords(parent()->GetTrackY(track), parent()->GetTrackHeight(track));
AddGhostInternal(ghost, mode);