# Possible to have stimulus be a large scrollable image?

**URL:** <https://discourse.psychopy.org/t/possible-to-have-stimulus-be-a-large-scrollable-image/12046>\
**Category:** Coding\
**Created:** [April 3, 2020, 6:12am UTC](https://discourse.psychopy.org/t/possible-to-have-stimulus-be-a-large-scrollable-image/12046 "2020-04-03T06:12:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [April 3, 2020, 12:01pm UTC](https://discourse.psychopy.org/t/possible-to-have-stimulus-be-a-large-scrollable-image/12046/2 "2020-04-03T12:01:58Z")

</div>

Hi @Pavlov101, yes, you can use the mouse method `getWheelRel` - [see docs](https://www.psychopy.org/api/event.html) to set the Y position of your image, or shape. Add a code component, and in the `Each Frame` tab:

```auto
# Each Frame
newY = (mouse.getWheelRel()[1] / 100)
polygon.pos += (0, newY) # where polygon is your shape

```

Here is an example  
[mouseWheel.psyexp](https://discourse.psychopy.org/uploads/short-url/dV4I8R2T0pLRA7m21JHdL43CyYw.psyexp) (6.8 KB)

---

_[View the full topic](https://discourse.psychopy.org/t/possible-to-have-stimulus-be-a-large-scrollable-image/12046)._
