fix: topC may not be float

pull/62/head
Varun Patil 2022-09-16 15:54:40 -07:00
parent ec397f3ae6
commit f2e3a862b1
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -606,7 +606,7 @@ export default class Timeline extends Mixins(GlobalMixin, UserConfig) {
// Compute timeline tick positions // Compute timeline tick positions
for (const tick of this.timelineTicks) { for (const tick of this.timelineTicks) {
tick.topC = Math.floor((tick.topS + tick.top * this.rowHeight) * this.timelineHeight / this.viewHeight); tick.topC = (tick.topS + tick.top * this.rowHeight) * this.timelineHeight / this.viewHeight;
} }
// Do another pass to figure out which timeline points are visible // Do another pass to figure out which timeline points are visible