From fe6543ac3fb6f5265327129fff88d7253d68bace Mon Sep 17 00:00:00 2001 From: Gabe Yuan Date: Tue, 8 Aug 2023 17:54:50 +0800 Subject: [PATCH] modify transitionDelay --- src/views/Action/Draggable.js | 5 +++-- src/views/Action/index.js | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/Action/Draggable.js b/src/views/Action/Draggable.js index 6fd2137..0db0239 100644 --- a/src/views/Action/Draggable.js +++ b/src/views/Action/Draggable.js @@ -38,7 +38,8 @@ export default function Draggable(props) { const handlePointerUp = (e) => { setOrigin(null); - if (props.name !== "fab") { + + if (!props.goside) { return; } @@ -88,7 +89,7 @@ export default function Draggable(props) { display: props.show ? "block" : "none", transitionProperty: origin ? "none" : "all", transitionDuration: "1s", - transitionDelay: "1s", + transitionDelay: "0.5s", }} onClick={handleClick} > diff --git a/src/views/Action/index.js b/src/views/Action/index.js index 1921365..13d4e1d 100644 --- a/src/views/Action/index.js +++ b/src/views/Action/index.js @@ -76,7 +76,6 @@ export default function Action() {