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

Macro: #3601 - attachment points aren't disappearing in snake viewed chain of peptides when hovering them multiple times #3628

Conversation

StarlaStarla
Copy link
Contributor

@StarlaStarla StarlaStarla commented Nov 29, 2023

How the feature works? / How did you fix the issue?

(Screenshots, videos, or GIFs, if applicable)

Root cause: When mouse over the current attachment points, they will be destoryed in a settimeout function and new set of attachment points will be created. If current attachment points are destoryed after their mouseleave event be triggered then there is no issue because the mouseleave event will trigger actions to clear the new created attachment points, while if they are destoryed before its mouseleave event be triggered(because the execution time of the settimeout function couldn't be guaranteed) then the new created set of attachment points will be left in the view.

Solution: instead of creating new attachment points everytime their mouseover event listener triggered, just update their styles when there are already attachment points existing.

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"
  • reviewers are notified about the pull request

StarlaStarla and others added 6 commits December 1, 2023 21:25
…chment-points-arent-disappearing-in-snake-viewed-chain-of-peptides-when-hovering-them-multiple-times
…cro-attachment-points-arent-disappearing-in-snake-viewed-chain-of-peptides-when-hovering-them-multiple-times
@Nitvex Nitvex force-pushed the 3601-macro-attachment-points-arent-disappearing-in-snake-viewed-chain-of-peptides-when-hovering-them-multiple-times branch from 38f29cd to a487b67 Compare December 7, 2023 13:25
@Nitvex Nitvex merged commit 1cdc04e into master Dec 7, 2023
5 checks passed
@Nitvex Nitvex deleted the 3601-macro-attachment-points-arent-disappearing-in-snake-viewed-chain-of-peptides-when-hovering-them-multiple-times branch December 7, 2023 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants