# Detecting mouse scroll

**URL:** <https://discourse.glfw.org/t/detecting-mouse-scroll/2024>\
**Category:** support\
**Created:** [March 20, 2022, 1:31am UTC](https://discourse.glfw.org/t/detecting-mouse-scroll/2024 "2022-03-20T01:31:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![v71](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/v71/32/612_2.png) [@v71](https://discourse.glfw.org/u/v71)\
**Post date:** [March 20, 2022, 1:31am UTC](https://discourse.glfw.org/t/detecting-mouse-scroll/2024/1 "2022-03-20T01:31:21Z")

</div>

Hello, I was wondering if it is possibile to get access to mouse scroll position without a callback function which will force me to create external data. I see that glfw exposes cursor position and mouse buttons states without using a callback functions  
thanks

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [March 20, 2022, 2:50pm UTC](https://discourse.glfw.org/t/detecting-mouse-scroll/2024/2 "2022-03-20T14:50:46Z")

</div>

Hi @v71,

Welcome to the GLFW forum.

The [scroll input in GLFW](https://www.glfw.org/docs/latest/input_guide.html#scrolling) only has a callback because there is no _scroll position_ only _scroll changes_ which are instantaneous. Thus this input is different from both the cursor position and mouse buttons.

Cheers,

Doug.
