Commit 805e6123 authored by Randall Leeds's avatar Randall Leeds

whitespace

parent 4c3a4b55
......@@ -194,7 +194,6 @@ class App
collapsed: !show
tab: 'login'
$scope.$on '$reset', => angular.extend $scope, @scope
# Fetch the initial model from the server
......
......@@ -205,12 +205,14 @@ class Annotator.Host extends Annotator
position: 'absolute'
top: $(window).scrollTop()
@panel?.notify method: 'publish', params: 'hostUpdated'
document.addEventListener 'touchmove', update
document.addEventListener 'touchstart', =>
touch = true
@frame?.css
display: 'none'
do update
document.addEventListener 'dragover', (event) =>
unless @drag.enabled then return
if @drag.last?
......@@ -219,11 +221,14 @@ class Annotator.Host extends Annotator
unless @drag.tick
@drag.tick = true
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