modify transitionDelay
This commit is contained in:
@@ -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}
|
||||
>
|
||||
|
||||
@@ -76,7 +76,6 @@ export default function Action() {
|
||||
<ThemeProvider>
|
||||
<Draggable
|
||||
key="pop"
|
||||
name="pop"
|
||||
{...popProps}
|
||||
show={showPopup}
|
||||
onStart={handleStart}
|
||||
@@ -109,7 +108,7 @@ export default function Action() {
|
||||
</Draggable>
|
||||
<Draggable
|
||||
key="fab"
|
||||
name="fab"
|
||||
goside
|
||||
{...fabProps}
|
||||
show={!showPopup}
|
||||
onStart={handleStart}
|
||||
|
||||
Reference in New Issue
Block a user