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

Next best active item #85

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Next best active item #85

wants to merge 4 commits into from

Conversation

musangowope
Copy link
Contributor

@musangowope musangowope commented Mar 10, 2022

What we want to achieve is having the the gutter intelligently activate a gutter item, if no gutter item is active when one of the activation methods are trigger(activateNextItem and activatePrevItem)

Added prop called container. this can be a CSS selector or HTMLElement
Add logic to determine the next best gutter item to activate if non have been selected. getNextBestActiveItem adapted existing indigo logic in this function. container element threshold is used to calculate the next best item
laws-africa/indigo#1425)

resolves #83

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.

When activating next/prev gutter annotation, take into account hidden annotations
1 participant