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

fix: add a 500ms delay time before showing the hover toolbar #7338

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

akumatus
Copy link
Member

@akumatus akumatus commented Jun 17, 2024

What Changed?

  • Prevents responding to hover state changes if the host element is disconnected from the DOM.
  • Use current event flag to ignore expired event.
  • Add a new property enterDelay with a value of 500ms to the constructor of the hover controller in link and refernce scenes.

Copy link

vercel bot commented Jun 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blocksuite ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 18, 2024 1:30am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
blocksuite-docs ⬜️ Ignored (Inspect) Visit Preview Jun 18, 2024 1:30am

Copy link

graphite-app bot commented Jun 17, 2024

Your org has enabled the Graphite merge queue for merging into master

Add the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @akumatus and the rest of your teammates on Graphite Graphite

@akumatus akumatus changed the title fix: add 500ms delay time before hover toolbar shown fix: add a 500ms delay time before hover toolbar shown Jun 17, 2024
@akumatus akumatus changed the title fix: add a 500ms delay time before hover toolbar shown fix: add a 500ms delay before hover toolbar shown Jun 17, 2024
@akumatus akumatus changed the title fix: add a 500ms delay before hover toolbar shown fix: add a 500ms delay time before showing the hover toolbar Jun 17, 2024
@akumatus akumatus marked this pull request as ready for review June 17, 2024 03:10
@lawvs
Copy link
Collaborator

lawvs commented Jun 17, 2024

Maybe I can fix it later? @akumatus

@akumatus
Copy link
Member Author

Maybe I can fix it later? @akumatus

Thanks for your help! Maybe it's a good chance for me to get familar with lit and hover logic, although there were some egde scenes which took me a lot time to handle.

Copy link
Collaborator

@lawvs lawvs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

Copy link

graphite-app bot commented Jun 18, 2024

Merge activity

  • Jun 17, 8:47 PM EDT: The merge label 'merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jun 17, 8:47 PM EDT: Saul-Mirone added this pull request to the Graphite merge queue.
  • Jun 17, 8:56 PM EDT: The Graphite merge queue couldn't merge this PR because it was not satisfying all requirements (Failed CI: 'Playground E2E test (1)').
  • Jun 17, 9:09 PM EDT: The merge label 'merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jun 17, 9:17 PM EDT: Saul-Mirone added this pull request to the Graphite merge queue.
  • Jun 17, 9:35 PM EDT: Saul-Mirone merged this pull request with the Graphite merge queue.

Saul-Mirone pushed a commit that referenced this pull request Jun 18, 2024
### What Changed?
- Prevents responding to hover state changes if the host element is disconnected from the DOM.
- Use current event flag to ignore expired event.
- Add a new property `enterDelay` with a value of 500ms to the constructor of the hover controller in link and refernce scenes.
@graphite-app graphite-app bot removed the merge label Jun 18, 2024
Saul-Mirone pushed a commit that referenced this pull request Jun 18, 2024
### What Changed?
- Prevents responding to hover state changes if the host element is disconnected from the DOM.
- Use current event flag to ignore expired event.
- Add a new property `enterDelay` with a value of 500ms to the constructor of the hover controller in link and refernce scenes.
Saul-Mirone pushed a commit that referenced this pull request Jun 18, 2024
### What Changed?
- Prevents responding to hover state changes if the host element is disconnected from the DOM.
- Use current event flag to ignore expired event.
- Add a new property `enterDelay` with a value of 500ms to the constructor of the hover controller in link and refernce scenes.
### What Changed?
- Prevents responding to hover state changes if the host element is disconnected from the DOM.
- Use current event flag to ignore expired event.
- Add a new property `enterDelay` with a value of 500ms to the constructor of the hover controller in link and refernce scenes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants