Skip to content

Commit

Permalink
#4008 - PDF highlighting disables after double-clicking on a recommen…
Browse files Browse the repository at this point in the history
…ded annotation

- Restore ability to select text after doing a double-click
  • Loading branch information
reckart committed May 23, 2023
1 parent cecba26 commit 2d3c10d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export function installSpanSelection () {

window.addEventListener('annotationHoverIn', () => { otherAnnotationTreating = true })
window.addEventListener('annotationHoverOut', () => { otherAnnotationTreating = false })
window.addEventListener('annotationDeleted', () => { otherAnnotationTreating = false })
// See https://github.com/inception-project/inception/issues/4008
window.addEventListener('doubleClickAnnotation', () => { otherAnnotationTreating = false })
}

function startSelection () {
Expand Down

0 comments on commit 2d3c10d

Please sign in to comment.