Commit 7c8acc6e authored by Randall Leeds's avatar Randall Leeds

oh jquery, you so suck sometimes

parent a365a546
...@@ -177,13 +177,16 @@ class Hypothesis extends Annotator ...@@ -177,13 +177,16 @@ class Hypothesis extends Annotator
if @viewer.isShown() and @bucket == -1 if @viewer.isShown() and @bucket == -1
this._fillDynamicBucket() this._fillDynamicBucket()
this.show() this.show()
.on 'dragstart', (event) =>
handle = @element.find('#toolbar .tri')[0]
handle.addEventListener 'dragstart', (event) =>
dragStart = event.screenX dragStart = event.screenX
.on 'dragend', (event) => handle.addEventListener 'dragend', (event) =>
@provider.addToFrameWidth (dragStart - event.screenX), window.innerWidth @provider.addToFrameWidth (dragStart - event.screenX), window.innerWidth
.on 'drag', (event) => handle.addEventListener 'drag', (event) =>
if event.screenX > 0 if event.screenX > 0
@provider.addToFrameWidth (dragStart - event.screenX), window.innerWidth @provider.addToFrameWidth (dragStart - event.screenX), window.innerWidth
dragStart = event.screenX
this this
_setupDynamicStyle: -> _setupDynamicStyle: ->
......
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