From 4a0725804cfd28e090cf813e0e9bb4764f08d414 Mon Sep 17 00:00:00 2001 From: HenryTSZ Date: Fri, 5 Jul 2024 17:12:26 +0800 Subject: [PATCH] fixes #131 #149 #182 scroll --- .vscode/settings.json | 5 +++++ src/animation.js | 2 +- src/scroller.js | 5 ++--- src/slide.js | 5 +---- 4 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6ac32ca --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "prettier.semi": true, + "prettier.singleQuote": false, + "prettier.printWidth": 80 +} diff --git a/src/animation.js b/src/animation.js index 185db79..9d1920d 100644 --- a/src/animation.js +++ b/src/animation.js @@ -2,7 +2,7 @@ import { createAnimation, Stagger } from "./airframe/airframe"; import easing from "./airframe/easing"; -const dx = 250; +const dx = 250000; const offOpacity = 0.6; /* @jsx createAnimation */ diff --git a/src/scroller.js b/src/scroller.js index f02c1fa..1b13901 100644 --- a/src/scroller.js +++ b/src/scroller.js @@ -147,8 +147,7 @@ export default function Scroller({
+
{!line.tokens.length &&
} {line.tokens.map((token, i) => { const style = themeStylesByType[token.type] || {};