diff options
author | bobzel <zzzman@gmail.com> | 2021-03-29 20:36:47 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-03-29 20:36:47 -0400 |
commit | 589f07ea018368057fe80b136c3fd2153efe0fcb (patch) | |
tree | 06e9a1749551397d6ec270da69a9cc2852955f33 /src/client/util/DragManager.ts | |
parent | 7db0fe589afa3281894afb0a0d3bd6b9983c9d33 (diff) |
fixed text input after changes to active/selected
Diffstat (limited to 'src/client/util/DragManager.ts')
-rw-r--r-- | src/client/util/DragManager.ts | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts index abf1af669..c1235163b 100644 --- a/src/client/util/DragManager.ts +++ b/src/client/util/DragManager.ts @@ -379,12 +379,7 @@ export namespace DragManager { if (docsBeingDragged.length) { const pdfBox = dragElement.getElementsByTagName("canvas"); const pdfBoxSrc = ele.getElementsByTagName("canvas"); - Array.from(pdfBox).filter(pb => pb.width && pb.height).map((pb, i) => { - const context = pb.getContext('2d')!; - console.log(getComputedStyle(pb).width); - console.log(getComputedStyle(pdfBoxSrc[i]).width); - context.drawImage(pdfBoxSrc[i], 0, 0); - }); + Array.from(pdfBox).filter(pb => pb.width && pb.height).map((pb, i) => pb.getContext('2d')!.drawImage(pdfBoxSrc[i], 0, 0)); } [dragElement, ...Array.from(dragElement.getElementsByTagName('*'))].forEach(ele => ele.hasAttribute("style") && ((ele as any).style.pointerEvents = "none")); |