Commit e23c02ca authored by Randall Leeds's avatar Randall Leeds

fix scrolling in pdf.js view (closes #306)

parent 2e32dcb2
......@@ -210,6 +210,9 @@ class Annotator.Host extends Annotator
window.requestAnimationFrame this._dragRefresh
$(window).on 'resize scroll', update
$(document.body).on 'resize scroll', '*', update
if window.PDFView?
# XXX: PDF.js hack
$(PDFView.container).on 'scroll', update
super
# These methods aren't used in the iframe-hosted configuration of Annotator.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment