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

whitespace

parent 4c3a4b55
...@@ -194,7 +194,6 @@ class App ...@@ -194,7 +194,6 @@ class App
collapsed: !show collapsed: !show
tab: 'login' tab: 'login'
$scope.$on '$reset', => angular.extend $scope, @scope $scope.$on '$reset', => angular.extend $scope, @scope
# Fetch the initial model from the server # Fetch the initial model from the server
......
...@@ -205,12 +205,14 @@ class Annotator.Host extends Annotator ...@@ -205,12 +205,14 @@ class Annotator.Host extends Annotator
position: 'absolute' position: 'absolute'
top: $(window).scrollTop() top: $(window).scrollTop()
@panel?.notify method: 'publish', params: 'hostUpdated' @panel?.notify method: 'publish', params: 'hostUpdated'
document.addEventListener 'touchmove', update document.addEventListener 'touchmove', update
document.addEventListener 'touchstart', => document.addEventListener 'touchstart', =>
touch = true touch = true
@frame?.css @frame?.css
display: 'none' display: 'none'
do update do update
document.addEventListener 'dragover', (event) => document.addEventListener 'dragover', (event) =>
unless @drag.enabled then return unless @drag.enabled then return
if @drag.last? if @drag.last?
...@@ -219,11 +221,14 @@ class Annotator.Host extends Annotator ...@@ -219,11 +221,14 @@ class Annotator.Host extends Annotator
unless @drag.tick unless @drag.tick
@drag.tick = true @drag.tick = true
window.requestAnimationFrame this._dragRefresh window.requestAnimationFrame this._dragRefresh
$(window).on 'resize scroll', update $(window).on 'resize scroll', update
$(document.body).on 'resize scroll', '*', update $(document.body).on 'resize scroll', '*', update
if window.PDFView? if window.PDFView?
# XXX: PDF.js hack # XXX: PDF.js hack
$(PDFView.container).on 'scroll', update $(PDFView.container).on 'scroll', update
super super
# These methods aren't used in the iframe-hosted configuration of Annotator. # 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