Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V1] reduce delay before Dialog is shown #3473

Closed
mesqueeb opened this issue Mar 5, 2019 · 12 comments
Closed

[V1] reduce delay before Dialog is shown #3473

mesqueeb opened this issue Mar 5, 2019 · 12 comments

Comments

@mesqueeb
Copy link
Contributor

mesqueeb commented Mar 5, 2019

I don't like that there's a small delay before my dialogs are shown.
I looked through the code and think it's this line:

I'd like to request for us to remove this delay or set it to a different value.

@webnoob
Copy link
Contributor

webnoob commented Mar 5, 2019

@rstoenescu I'd be happy to do a PR for this if needs be. I propose a new prop:

delay: {
  type: Number,
  default: 600
}

From what I can see, it'd need to apply to the show and hide emits.

@mesqueeb
Copy link
Contributor Author

mesqueeb commented Mar 5, 2019

PS, if no special reason for 600ms, I would set the default to 300 (or 0), just to make the default feel more responsive.

@webnoob
Copy link
Contributor

webnoob commented Mar 6, 2019

Ok, so the $emit('show') doesn't actually control the speed of the dialog showing so this isn't just a prop change from what I can see so far.

@webnoob
Copy link
Contributor

webnoob commented Mar 6, 2019

From what I can see there no forced delay being applied to the display of the modal at all. The modal is added to the dom via:

At this point I'm not sure where to take this. I think the minor delay is the fact it has to wait until the nexttick, then it has to render and forceupdate. This add's a slight delayed feel.

@mesqueeb
Copy link
Contributor Author

mesqueeb commented Mar 6, 2019

Are you sure? Show portal could mean the mask and then a show event is emit to show the actual dialog after 600 ms.

@webnoob
Copy link
Contributor

webnoob commented Mar 6, 2019

I debugged it this morning and the setTimeout() delay had no effect. The dialog showed, then my console log would appear after 3 seconds (with a 3000 delay).

@mesqueeb
Copy link
Contributor Author

@rstoenescu Do you have any idea why the Dialog feels like there's a short delay before it is shown?

@mesqueeb mesqueeb changed the title [V1] reduce 600ms delay on Dialog show [V1] reduce delay before Dialog is shown Mar 11, 2019
@mesqueeb
Copy link
Contributor Author

mesqueeb commented Mar 16, 2019

@webnoob I think Razvan's latest commit might have something to do with this issue:

feat(quasar): Speed up transition times (300ms)

@rstoenescu
Copy link
Member

@mesqueeb thanks for pointing this out. Closing bug as the transitions are now set to 300ms.
Will be available in beta.11

@mesqueeb
Copy link
Contributor Author

Thanks a lot! I'll see how it feels in next beta!

@rstoenescu
Copy link
Member

It feels snappier, even if it doesn't has to do with performance at all :)

@webnoob
Copy link
Contributor

webnoob commented Mar 17, 2019

@mesqueeb Well it appears he made the same changes I made locally. I "think" the issue is I didn't change the CSS transitions! Will take note for future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants