From 13cf7d41707f9c999604baf89448047a4553aec1 Mon Sep 17 00:00:00 2001 From: Andrew Gundersen Date: Fri, 5 Mar 2021 10:41:43 -0600 Subject: [PATCH] better comments --- crash.log | 2 ++ src/components/content.vue | 0 src/components/helpers.ts | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 src/components/content.vue diff --git a/crash.log b/crash.log index 3d7e5c0..14b4301 100644 --- a/crash.log +++ b/crash.log @@ -43,3 +43,5 @@ PID 60328 received SIGSEGV for address: 0x7f900fab4000 12 libsystem_pthread.dylib 0x00007fff205f747b thread_start + 15 PID 65740 received SIGSEGV for address: 0x7fbddef00000 0 segfault-handler.node 0x0000000116e6ae60 _ZL16segfault_handleriP9__siginfoPv + 304 +PID 65817 received SIGSEGV for address: 0x7fe23f39d000 +0 segfault-handler.node 0x0000000110840e60 _ZL16segfault_handleriP9__siginfoPv + 304 diff --git a/src/components/content.vue b/src/components/content.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/components/helpers.ts b/src/components/helpers.ts index ec57775..658802a 100644 --- a/src/components/helpers.ts +++ b/src/components/helpers.ts @@ -15,12 +15,12 @@ export function calcSideProximity (inputItemX: number, winW: number) { export function calcPosition (inputItemPosition: number, percent: number, short: number, win: number) { - // Is it close to the right/left side? + // Is it close to a side? If so, stay fixed. if (percent > 0.75) { inputItemPosition = win - short } - // Is it not close to a side? + // Else move relativly. if (percent < 0.75 && percent > 0.25) { inputItemPosition = win * percent } -- 2.43.0