aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/editor.tsx2
1 files changed, 1 insertions, 1 deletions
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] = {