# Widget scroll in main page

**URL:** <https://discourse.dojo.io/t/widget-scroll-in-main-page/479>\
**Category:** Dojo 1.x users\
**Created:** [March 30, 2020, 4:23pm UTC](https://discourse.dojo.io/t/widget-scroll-in-main-page/479 "2020-03-30T16:23:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![uhgar](https://avatars.discourse-cdn.com/v4/letter/u/e5b9ba/32.png) [@uhgar](https://discourse.dojo.io/u/uhgar)\
**Post date:** [March 30, 2020, 4:23pm UTC](https://discourse.dojo.io/t/widget-scroll-in-main-page/479/1 "2020-03-30T16:23:05Z")

</div>

I need to capture scroll event in widget, In main page there is a inner widget page which is scrollable, I need to capture if scroll happens, and window.scroll is not detecting this, not sure how to do. I tried registry.id(‘dummy’).domNode and ‘scroll’ , function(){…}.

Could someone help me. If am not clear let me know. I elaborate further,

---

<div class="post-metadata">

**Author:** ![jchujeux](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jchujeux](https://discourse.dojo.io/u/jchujeux)\
**Post date:** [April 1, 2020, 8:57am UTC](https://discourse.dojo.io/t/widget-scroll-in-main-page/479/2 "2020-04-01T08:57:25Z")

</div>

Try:  
widget.on(‘scroll’, function(evt){ …});

jc
