legalthings / angular-pdfjs-viewer

PDF.js viewer directive for AngularJS
MIT License
137 stars 113 forks source link

Next and previous not working as expected #68

Open aparnanambissan opened 7 years ago

aparnanambissan commented 7 years ago

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.

isylhdin commented 6 years ago

Did you find a workaround ? I am facing the same problem

kalebakula commented 6 years ago

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