|
21 | 21 | <div v-else-if="isLoaded" class="relative h-full w-full"> |
22 | 22 | <GlobalPointerProvider :documentId="documentId"> |
23 | 23 | <Viewport class="bg-gray-100" :documentId="documentId"> |
24 | | - <Scroller :documentId="documentId" v-slot="{ page }"> |
25 | | - <Rotate |
26 | | - :documentId="documentId" |
27 | | - :pageIndex="page.pageIndex" |
28 | | - style="background-color: #fff" |
29 | | - > |
30 | | - <PagePointerProvider :documentId="documentId" :pageIndex="page.pageIndex"> |
31 | | - <RenderLayer |
32 | | - :documentId="documentId" |
33 | | - :pageIndex="page.pageIndex" |
34 | | - :scale="1" |
35 | | - style="pointer-events: none" |
36 | | - /> |
37 | | - <TilingLayer |
38 | | - :documentId="documentId" |
39 | | - :pageIndex="page.pageIndex" |
40 | | - style="pointer-events: none" |
41 | | - /> |
42 | | - <SearchLayer :documentId="documentId" :pageIndex="page.pageIndex" /> |
43 | | - <MarqueeZoom :documentId="documentId" :pageIndex="page.pageIndex" /> |
44 | | - <MarqueeCapture :documentId="documentId" :pageIndex="page.pageIndex" /> |
45 | | - <SelectionLayer |
46 | | - :documentId="documentId" |
47 | | - :pageIndex="page.pageIndex" |
48 | | - :selectionMenu="selectionMenu" |
49 | | - /> |
50 | | - <RedactionLayer |
51 | | - :documentId="documentId" |
52 | | - :pageIndex="page.pageIndex" |
53 | | - :selectionMenu="redactionMenu" |
54 | | - /> |
55 | | - <AnnotationLayer |
56 | | - :documentId="documentId" |
57 | | - :pageIndex="page.pageIndex" |
58 | | - :selectionMenu="annotationMenu" |
59 | | - /> |
60 | | - </PagePointerProvider> |
61 | | - </Rotate> |
62 | | - </Scroller> |
| 24 | + <ZoomGestureWrapper :documentId="documentId"> |
| 25 | + <Scroller :documentId="documentId" v-slot="{ page }"> |
| 26 | + <Rotate |
| 27 | + :documentId="documentId" |
| 28 | + :pageIndex="page.pageIndex" |
| 29 | + style="background-color: #fff" |
| 30 | + > |
| 31 | + <PagePointerProvider :documentId="documentId" :pageIndex="page.pageIndex"> |
| 32 | + <RenderLayer |
| 33 | + :documentId="documentId" |
| 34 | + :pageIndex="page.pageIndex" |
| 35 | + :scale="1" |
| 36 | + style="pointer-events: none" |
| 37 | + /> |
| 38 | + <TilingLayer |
| 39 | + :documentId="documentId" |
| 40 | + :pageIndex="page.pageIndex" |
| 41 | + style="pointer-events: none" |
| 42 | + /> |
| 43 | + <SearchLayer :documentId="documentId" :pageIndex="page.pageIndex" /> |
| 44 | + <MarqueeZoom :documentId="documentId" :pageIndex="page.pageIndex" /> |
| 45 | + <MarqueeCapture :documentId="documentId" :pageIndex="page.pageIndex" /> |
| 46 | + <SelectionLayer |
| 47 | + :documentId="documentId" |
| 48 | + :pageIndex="page.pageIndex" |
| 49 | + :selectionMenu="selectionMenu" |
| 50 | + /> |
| 51 | + <RedactionLayer |
| 52 | + :documentId="documentId" |
| 53 | + :pageIndex="page.pageIndex" |
| 54 | + :selectionMenu="redactionMenu" |
| 55 | + /> |
| 56 | + <AnnotationLayer |
| 57 | + :documentId="documentId" |
| 58 | + :pageIndex="page.pageIndex" |
| 59 | + :selectionMenu="annotationMenu" |
| 60 | + /> |
| 61 | + </PagePointerProvider> |
| 62 | + </Rotate> |
| 63 | + </Scroller> |
| 64 | + </ZoomGestureWrapper> |
63 | 65 | <!-- Page Controls --> |
64 | 66 | <PageControls :documentId="documentId" /> |
65 | 67 | </Viewport> |
@@ -87,7 +89,7 @@ import { Rotate } from '@embedpdf/plugin-rotate/vue'; |
87 | 89 | import { RenderLayer } from '@embedpdf/plugin-render/vue'; |
88 | 90 | import { TilingLayer } from '@embedpdf/plugin-tiling/vue'; |
89 | 91 | import { SearchLayer } from '@embedpdf/plugin-search/vue'; |
90 | | -import { MarqueeZoom } from '@embedpdf/plugin-zoom/vue'; |
| 92 | +import { MarqueeZoom, ZoomGestureWrapper } from '@embedpdf/plugin-zoom/vue'; |
91 | 93 | import { MarqueeCapture } from '@embedpdf/plugin-capture/vue'; |
92 | 94 | import { SelectionLayer } from '@embedpdf/plugin-selection/vue'; |
93 | 95 | import { RedactionLayer } from '@embedpdf/plugin-redaction/vue'; |
|
0 commit comments