# How can I capture mouse scroll on any component?

**URL:** <https://forum.inductiveautomation.com/t/how-can-i-capture-mouse-scroll-on-any-component/74677>\
**Category:** Ignition\
**Tags:** ignition81, vision, scripting\
**Created:** [June 7, 2023, 1:44am UTC](https://forum.inductiveautomation.com/t/how-can-i-capture-mouse-scroll-on-any-component/74677 "2023-06-07T01:44:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elijah.puga](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/elijah.puga/32/23091_2.png) [@elijah.puga](https://forum.inductiveautomation.com/u/elijah.puga)\
**Post date:** [June 7, 2023, 1:44am UTC](https://forum.inductiveautomation.com/t/how-can-i-capture-mouse-scroll-on-any-component/74677/1 "2023-06-07T01:44:58Z")

</div>

I want to capture the mouse scroll movement when a mouse is hovered on a component and a mouse scroll is made. I want this function specifically on a template canvas. Is there any possible way to do this?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 7, 2023, 11:10am UTC](https://forum.inductiveautomation.com/t/how-can-i-capture-mouse-scroll-on-any-component/74677/2 "2023-06-07T11:10:09Z")

</div>

Look in your component's scripting dialog. There are events for mouse wheel operations that you can attach scripts to.
