Open aparnanambissan opened 7 years ago
Did you find a workaround ? I am facing the same problem
hello all
We are also facing same issue because event listeners are getting added again and again whenever pdfjs-viewer directive gets laoded. It is making to fire all the events again and again please help to fix this issue. I have two templates which are using same directive but controller is same. Whenever i navigate between these two viewes events are getting added again and again
Steps to reproduce : 1) Open the pdf, press next/previous in the toolbar, the pages are loaded in steps of 1. (works fine on first try) 2) Close the pdf and open again. 3) Press next/previous button. The page is now loaded in steps of 2. (ie page 1,3,5..) 4) For subsequent opening and closing of the pdf, the step size is increasing with count one.
Please suggest on how to tackle this.