# Get Scrollbar position of a perspective component

**URL:** <https://forum.inductiveautomation.com/t/get-scrollbar-position-of-a-perspective-component/45307>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 6, 2021, 7:14pm UTC](https://forum.inductiveautomation.com/t/get-scrollbar-position-of-a-perspective-component/45307 "2021-04-06T19:14:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason.hood](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@jason.hood](https://forum.inductiveautomation.com/u/jason.hood)\
**Post date:** [April 6, 2021, 7:14pm UTC](https://forum.inductiveautomation.com/t/get-scrollbar-position-of-a-perspective-component/45307/1 "2021-04-06T19:14:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tmahaf](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaf/32/23492_2.png) [@tmahaf](https://forum.inductiveautomation.com/u/tmahaf)\
**Post date:** [April 20, 2022, 5:53pm UTC](https://forum.inductiveautomation.com/t/get-scrollbar-position-of-a-perspective-component/45307/2 "2022-04-20T17:53:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [August 6, 2026, 9:06am UTC](https://forum.inductiveautomation.com/t/get-scrollbar-position-of-a-perspective-component/45307/3 "2026-08-06T09:06:39Z")

</div>

Same for me.

Do you have a solution ?
