From 68029287acda9468eb6b9c22f9d262523b875f77 Mon Sep 17 00:00:00 2001 From: MR Ngo Date: Thu, 22 Mar 2018 09:49:27 -0400 Subject: [PATCH] fixed 0 frames problem in intro, and rounding up when doing conversion of FPS to milliseconds - MR --- app/components/intro.js | 2 +- app/utilities/exportHelperFunctions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/intro.js b/app/components/intro.js index a06d93f..d78ff27 100644 --- a/app/components/intro.js +++ b/app/components/intro.js @@ -43,7 +43,7 @@ export default class Intro extends React.Component {

-
+
diff --git a/app/utilities/exportHelperFunctions.js b/app/utilities/exportHelperFunctions.js index 59ff9fb..a5ddfc2 100644 --- a/app/utilities/exportHelperFunctions.js +++ b/app/utilities/exportHelperFunctions.js @@ -2,7 +2,7 @@ const convertToMilliseconds = (value, numFrames) => { const valuesArray = value.split("."); const numMillisecondsPerFrame = 1000/Number(numFrames); const frame = Number(valuesArray[1])-1; // convert to a 0-indexed format - const milliseconds = ("000" + Math.round(frame*numMillisecondsPerFrame)).slice(-3); + const milliseconds = ("000" + Math.ceil(frame*numMillisecondsPerFrame)).slice(-3); return valuesArray[0] + "." + milliseconds; }