Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scroll to annotation editor when opening it
This fixes #2053: - Go to a page that has more than a screenful of annotations in the sidebar - Scroll the sidebar to the very bottom - Scroll the page to the very top, select some text and create a new annotation that will appear above the other annotations in the sidebar => The new annotation appears in the sidebar with its edit form open, but it's off screen. From the user's POV nothing happens. You can get the same bug by scrolling the sidebar to the top and annotating the bottom of the page. This commit fixes the issue by having AnnotationController emit an "editorOpened" event whenever it opens its editor form, and having AppController catch this event and scroll the sidebar to the annotation that emitted the event.
- Loading branch information