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

feat(annotations): Hide annotation controls when fullscreen is active #1188

Merged
merged 6 commits into from
Mar 31, 2020

Conversation

mxiao6
Copy link
Contributor

@mxiao6 mxiao6 commented Mar 30, 2020

No description provided.

@mxiao6 mxiao6 requested a review from a team as a code owner March 30, 2020 23:05
@mxiao6 mxiao6 force-pushed the hide-annotation-controls branch from 27dc600 to bdfd7c9 Compare March 31, 2020 00:21
src/lib/AnnotationControls.ts Outdated Show resolved Hide resolved
src/lib/AnnotationControls.ts Show resolved Hide resolved
Comment on lines +108 to +114
if (regionButtonElement) {
this.isRegionActive = !this.isRegionActive;
if (this.isRegionActive) {
regionButtonElement.classList.add(CLASS_BUTTON_ACTIVE);
} else {
regionButtonElement.classList.remove(CLASS_BUTTON_ACTIVE);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Once the toggleAnnotationMode api is setup with the corresponding event, we may want to consider refactoring this to respond to the event instead so we can remove the local state maintained by AnnotationControls

@mergify mergify bot merged commit 8b5126e into box:master Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants