Skip to content

Commit

Permalink
Fix: Allow annotation text to be selectable (#719)
Browse files Browse the repository at this point in the history
Old CSS was prevent user selection of anything that wasn't a text layer div to prevent weird selection edge cases. This patch relaxes that to allow selection of `<span>`, `<p>` & `<input>` so annotation dialog text can be selected (they use `<p>`).
  • Loading branch information
tonyjin authored Mar 16, 2018
1 parent f656064 commit 929e5bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/viewers/doc/_docBase.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@
}
}

// Allow other text to be selectable
input,
p,
span {
user-select: text;
}

// This is so hover and click targets for links inside the document show
// up correctly. We add 15px top margin since PDF.js sets the top for these
// manually assuming there is no vertical padding on the page
Expand Down

0 comments on commit 929e5bf

Please sign in to comment.