# ViewerEventData event "load" doesn't detect mouse wheel changes

**URL:** <https://resource.dopus.com/t/viewereventdata-event-load-doesnt-detect-mouse-wheel-changes/24275>\
**Category:** Help & Support\
**Tags:** script\
**Created:** [November 28, 2016, 10:10pm UTC](https://resource.dopus.com/t/viewereventdata-event-load-doesnt-detect-mouse-wheel-changes/24275 "2016-11-28T22:10:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kundal](https://resource.dopus.com/user_avatar/resource.dopus.com/kundal/32/24277_2.png) [@kundal](https://resource.dopus.com/u/kundal)\
**Post date:** [November 28, 2016, 10:10pm UTC](https://resource.dopus.com/t/viewereventdata-event-load-doesnt-detect-mouse-wheel-changes/24275/1 "2016-11-28T22:10:55Z")

</div>

When changing the current image by mouse wheel (preferences option "cycle through pictures with mouse wheel" activated) the "load" event doesn't detect the change. With the next/previous buttons it works as expected. Please make it also working with the mouse wheel.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [November 28, 2016, 10:51pm UTC](https://resource.dopus.com/t/viewereventdata-event-load-doesnt-detect-mouse-wheel-changes/24275/2 "2016-11-28T22:51:32Z")

</div>

It must work or the [Viewer Select - Make file display track standalone viewer](https://resource.dopus.com/t/viewer-select-make-file-display-track-standalone-viewer/23320/1) script would not work.

---

<div class="post-metadata">

**Author:** ![kundal](https://resource.dopus.com/user_avatar/resource.dopus.com/kundal/32/24277_2.png) [@kundal](https://resource.dopus.com/u/kundal)\
**Post date:** [November 29, 2016, 2:22pm UTC](https://resource.dopus.com/t/viewereventdata-event-load-doesnt-detect-mouse-wheel-changes/24275/3 "2016-11-29T14:22:21Z")

</div>

You're right, sorry. It was my own fault. I overlooked that I used an If-clause that made it only working if the viewer was in the foreground. It's working fine now.
