mercredi 29 mars 2017

EmberJS router and external library

I have currently difficulties in using the EmberJS router and an external library. Using the EmberJS router, the routing functionality works perfectly. Also the inclusion of the external library within a component works as expected.

BUT the combination of both is not working.

In detail: the library (pdf.js) is manipulating the DOM and inserting anchor tags while scrolling through the document. These anchor tags work fine. But if I try to "catch" the event and use the EmberJS routing functionality, it is not working! I cannot create an eventlistener in the DidRender() function and use preventDefault, because the elements are not present during the time of execution of DidRender.

Did anyone face the same issue or maybe has a solution for this problem?

Cheers, Franz




Aucun commentaire:

Enregistrer un commentaire