Commit 978fae50 authored by Randall Leeds's avatar Randall Leeds

Merge pull request #1602 from hypothesis/remove-inadderclick

Get rid of the inAdderClick logic
parents a2701dbe 84975964
...@@ -7,6 +7,7 @@ class Annotator.Guest extends Annotator ...@@ -7,6 +7,7 @@ class Annotator.Guest extends Annotator
events: events:
".annotator-adder button click": "onAdderClick" ".annotator-adder button click": "onAdderClick"
".annotator-adder button mousedown": "onAdderMousedown" ".annotator-adder button mousedown": "onAdderMousedown"
".annotator-adder button mouseup": "onAdderMouseup"
"setTool": "onSetTool" "setTool": "onSetTool"
"setVisibleHighlights": "onSetVisibleHighlights" "setVisibleHighlights": "onSetVisibleHighlights"
...@@ -338,6 +339,10 @@ class Annotator.Guest extends Annotator ...@@ -338,6 +339,10 @@ class Annotator.Guest extends Annotator
method: 'addToken' method: 'addToken'
params: token params: token
onAdderMouseup: ->
event.preventDefault()
event.stopPropagation()
onAdderMousedown: -> onAdderMousedown: ->
onAdderClick: (event) => onAdderClick: (event) =>
......
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