aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-06-14 11:35:57 +0200
committerlonkaars <loek@pipeframe.xyz>2021-06-14 11:35:57 +0200
commitf1bbdefb65d9032cddca8b6baadca14e8188ef0c (patch)
treea6b5d79c54cf14cdc207ed3e1362a00e64a3652b /pages
parent0d30ce10e54a894edb12b77330cc3c5edae83705 (diff)
fix keyframe selection alignment
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] = {