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

fix(annotations): handle scrollToAnnotation in Preview #1214

Merged

Conversation

mickr
Copy link
Contributor

@mickr mickr commented May 28, 2020

  • Add handler to handle the scrolltoannotation event.
  • Add override to PresentationViewer to setPage since we only show 1 page at a time.

@mickr mickr requested a review from a team as a code owner May 28, 2020 21:22
src/lib/viewers/doc/PresentationViewer.js Outdated Show resolved Hide resolved
src/lib/viewers/doc/PresentationViewer.js Outdated Show resolved Hide resolved
src/lib/viewers/doc/PresentationViewer.js Outdated Show resolved Hide resolved
src/lib/viewers/BaseViewer.js Outdated Show resolved Hide resolved
src/lib/viewers/BaseViewer.js Show resolved Hide resolved
src/lib/viewers/BaseViewer.js Outdated Show resolved Hide resolved
src/lib/viewers/BaseViewer.js Outdated Show resolved Hide resolved
src/lib/viewers/BaseViewer.js Show resolved Hide resolved
src/lib/viewers/doc/PresentationViewer.js Outdated Show resolved Hide resolved
src/lib/viewers/doc/PresentationViewer.js Outdated Show resolved Hide resolved
@ConradJChan
Copy link
Contributor

Sorry, some duplicate comments

jstoffan
jstoffan previously approved these changes May 28, 2020
src/lib/viewers/doc/PresentationViewer.js Outdated Show resolved Hide resolved
mickr added 3 commits May 29, 2020 18:22
* Add handler to handle the scrolltoannotation event.
* Add override to PresentationViewer to setPage since we only show 1 page at a time.
* Updated handleScroll to call the annotators scroll method if id provided or pass the payload (string) to the method.
@mickr mickr force-pushed the handle-scroll-annotation-for-presentations branch from 682a10c to c119a4b Compare May 30, 2020 01:32
src/lib/viewers/doc/PresentationViewer.js Outdated Show resolved Hide resolved
src/lib/viewers/doc/PresentationViewer.js Outdated Show resolved Hide resolved
src/lib/viewers/BaseViewer.js Outdated Show resolved Hide resolved
@mergify mergify bot merged commit ea523ae into box:master Jun 1, 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