Skip to content

ShapeFile: Fixed Tooltip#372

Merged
billyc merged 2 commits intostagingfrom
fixed-tooltip
Jul 16, 2024
Merged

ShapeFile: Fixed Tooltip#372
billyc merged 2 commits intostagingfrom
fixed-tooltip

Conversation

@frievoe97
Copy link
Copy Markdown
Collaborator

@frievoe97 frievoe97 commented Jul 8, 2024

The idea is to display a fixed tooltip after clicking on a link. Once a link is selected, it stays highlighted even if the mouse moves away, making it clear which link is currently selected. To "unfix" the tooltip, you can either click on another link or click in an empty area.

However, the implementation is a bit buggy. It takes a few milliseconds for the effect to take place after the onClick method is called.

@billyc Could you take a look and give me some feedback?

@frievoe97 frievoe97 requested a review from billyc July 8, 2024 13:47
@billyc
Copy link
Copy Markdown
Contributor

billyc commented Jul 9, 2024

@frievoe97 I notice is that the tooltip doesn't update when clicking on a second link. I think the click method might need to clear the highlighted link before it sets/selects the next link. For Vue to update that correctly you might need an await this.$nextTick() call to make sure the view state syncs up.

That would probably also fix the other bug I notice which is that clicking away / clearing the selected link doesnt hide the tooltip until the user moves the mouse.

But in general this is very close to working!

@frievoe97 frievoe97 marked this pull request as ready for review July 11, 2024 10:20
@frievoe97
Copy link
Copy Markdown
Collaborator Author

There are two merge conflicts and I don't want to break anything. Can you check that? @billyc

@billyc billyc merged commit 8e6d160 into staging Jul 16, 2024
@billyc billyc deleted the fixed-tooltip branch July 16, 2024 12:27
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

Successfully merging this pull request may close these issues.

2 participants