From 9eb96aa7821fa47d450650a3ac5826255130ef44 Mon Sep 17 00:00:00 2001 From: Alexey Ermakov Date: Thu, 24 Dec 2020 23:17:01 +0300 Subject: [PATCH] fix: Pass required EventBus instance to PDFPageView --- src/Pdfvuer.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Pdfvuer.vue b/src/Pdfvuer.vue index 6b74f77..fcdd65e 100644 --- a/src/Pdfvuer.vue +++ b/src/Pdfvuer.vue @@ -21,7 +21,8 @@ DefaultAnnotationLayerFactory, DefaultTextLayerFactory, PDFLinkService, - PDFPageView + PDFPageView, + EventBus } from 'pdfjs-dist/web/pdf_viewer.js'; import resizeSensor from 'vue-resize-sensor' @@ -173,6 +174,7 @@ }), textLayerFactory: textLayer, annotationLayerFactory: annotationLayer, + eventBus: new EventBus() }); self.loading = false; self.$emit('loading', false);