Get Scrollbar position of a perspective component

Hi, I am trying to get the scrollbar position of a perspective PDFViewer component. I have tried following a few other posts but they all pertain to vision components and I can’t get them to work for perspective.

Why I need it: I have a script on my pdfviewer that allows me to navigate the pages using the mousewheel. however, I need the pdfviewer to be resizable (and thus have a y axis scroll bar at times). So my problem is that while trying to scroll through a single page, my script changes the page. so I would like to add something similar to “if scroll position equals 0 (top of page), change page” etc.

Thanks in advance,
Jason

Bump on this. It would be nice to be able to reset scroll bar positions.

Same for me.

Do you have a solution ?