-
Notifications
You must be signed in to change notification settings - Fork 116
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
feat(annotations): Disable target pointer-events when explicit creation #1262
feat(annotations): Disable target pointer-events when explicit creation #1262
Conversation
src/lib/viewers/doc/_docBase.scss
Outdated
|
||
.annotationLayer { | ||
.annotationLayer, | ||
.ba-HighlightList .ba-HighlightSvg.is-listening .ba-HighlightTarget-rect, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't love how specific this rule has to be to override the existing styles, but this can be updated if we can make the underlying style less specific
ab9aa32
to
d912111
Compare
d912111
to
6a62874
Compare
default: | ||
this.containerEl.classList.remove(CLASS_ANNOTATIONS_CREATE_REGION); | ||
break; | ||
if (this.containerEl) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the enableAnnotationsDiscoveribility
clause because these classes can be applied with or without that feature. This allows explicit creation modes to disable existing annotations interactivity irrespective of discoverability
When in explicit annotation creation mode (highlight or region), all existing annotation targets should not be interact-able.