# How to Intercept page scroll event

**URL:** <https://meta.discourse.org/t/how-to-intercept-page-scroll-event/44069>\
**Category:** Development\
**Created:** [2016 年 5 月 11 日午後 6:15 UTC](https://meta.discourse.org/t/how-to-intercept-page-scroll-event/44069 "2016-05-11T18:15:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![itkin](https://avatars.discourse-cdn.com/v4/letter/i/22d042/32.png) [@itkin](https://meta.discourse.org/u/itkin)\
**Post date:** [2016 年 5 月 11 日午後 11:15 UTC](https://meta.discourse.org/t/how-to-intercept-page-scroll-event/44069/2 "2016-05-11T23:15:18Z")

</div>

seems to be in views/topic.js.es6  
` if (showTopic) { this.appEvents.trigger('header:show-topic', topic); } else { this.appEvents.trigger('header:hide-topic'); }`  
Anybody knows how to intercept such event ?

---

_[View the full topic](https://meta.discourse.org/t/how-to-intercept-page-scroll-event/44069)._
