If fires the handler even when the page is not active
shadoWalker89 opened this issue · 0 comments
Hi,
Thanks for the package, but there is a problem the handler
keeps firing even when the page is no active.
I have a single page app using vue router.
I'm using you package in the grid component to load more rows when the user reach the bottom of the page.
A user can click on more details to open the details page of a row.
I'm using <keep-alive include="papers-grid"></keep-alive>
on the grid component only.
So when the details pages is opened, vue will keep the grid component alive but inative.
In this case when i scroll in the details page the mugen scroll handler keep firing non stop on each scroll event
EDIT: For now what i'm doing is that i'm tracking if the grid page is active using the route guards, and using that in he :should-handle
.
But i guess that the behaviour of firing the handler only when the page is active should be handeled by the mugen package if that is possible