From f1bbdefb65d9032cddca8b6baadca14e8188ef0c Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 14 Jun 2021 11:35:57 +0200 Subject: fix keyframe selection alignment --- pages/editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pages') diff --git a/pages/editor.tsx b/pages/editor.tsx index 36247a6..972c5f4 100644 --- a/pages/editor.tsx +++ b/pages/editor.tsx @@ -445,7 +445,7 @@ function TimelineEditor(props: { var offset = -4; // keyframe offset var x = event.clientX - 240 + offset; var frame = getFrameAtOffset(x, timelineZoom) - 0.5; - var slide = new toolToSlide[props.selectedTool](frame); + var slide = new toolToSlide[props.selectedTool](Math.round(frame)); workingTimeline.push(slide); setWorkingTimeline(workingTimeline); keyframeInAnimations[slide.id] = { -- cgit v1.2.3