Skip to main content
Box Employee
May 22, 2025 6:19 AM UTC
Question

Content preview - page focus event

Hi.  I'm wondering if there is an event that fires whenever the page focus changes in the content preview.  For example, as you scroll from page 3 to page 4, is there any event that can fire to tell you that?

 

I see the 'navigate' event, but I *think* that refers to the event wherein the preview switches from one 'file' to another 'file', not when the page in focus changes within a single file.

 

Any ideas?

    1 reply

    Box Employee
    May 22, 2025 6:19 AM UTC

    Hey ,

    There is a 'pagefocus' event for the document viewer which returns the page that you scrolled to. Check out the readme here. Hope this helps!

    Translate