diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-10-08 19:02:35 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-10-08 19:02:35 -0400 |
commit | 29cdf0d66df3e38408f69ac8225b4d59397ee2e6 (patch) | |
tree | d45b62cb180929cf9cd04415ab6927012f37ccb4 /src/client/util/TooltipTextMenu.tsx | |
parent | 121cbc76bf971e688398533b303e32d637265364 (diff) |
fixes for text selection in pdfs to be less jumpy and to work through other annotations.
Diffstat (limited to 'src/client/util/TooltipTextMenu.tsx')
-rw-r--r-- | src/client/util/TooltipTextMenu.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/TooltipTextMenu.tsx b/src/client/util/TooltipTextMenu.tsx index 5f2bc18b5..fe4c5ac9f 100644 --- a/src/client/util/TooltipTextMenu.tsx +++ b/src/client/util/TooltipTextMenu.tsx @@ -545,7 +545,7 @@ export class TooltipTextMenu { view.dispatch(tx2); })) { let tx2 = view.state.tr; - let tx3 = updateBullets(tx2, schema, (nodeType as any).attrs.mapStyle); + let tx3 = nodeType ? updateBullets(tx2, schema, (nodeType as any).attrs.mapStyle) : tx2; marks && tx3.ensureMarks([...marks]); marks && tx3.setStoredMarks([...marks]); |