# Scrolling and image

**URL:** <https://discourse.processing.org/t/scrolling-and-image/1003>\
**Category:** Project Guidance\
**Created:** [June 16, 2018, 3:48am UTC](https://discourse.processing.org/t/scrolling-and-image/1003 "2018-06-16T03:48:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![poppanona](https://avatars.discourse-cdn.com/v4/letter/p/6f9a4e/32.png) [@poppanona](https://discourse.processing.org/u/poppanona)\
**Post date:** [June 16, 2018, 3:48am UTC](https://discourse.processing.org/t/scrolling-and-image/1003/1 "2018-06-16T03:48:37Z")

</div>

How do I scroll an image

---

<div class="post-metadata">

**Author:** ![Grimtin10](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Post date:** [June 16, 2018, 4:34am UTC](https://discourse.processing.org/t/scrolling-and-image/1003/2 "2018-06-16T04:34:06Z")

</div>

Could you be more specific please?

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [June 16, 2018, 12:28pm UTC](https://discourse.processing.org/t/scrolling-and-image/1003/3 "2018-06-16T12:28:26Z")

</div>

You want to check for panning. Check this search:

> [panning image :processing.org - Google Search](https://www.google.com/search?q=panning+image+%3Aprocessing.org&ie=utf-8&oe=utf-8&client=firefox-b-1-ab)

Kf

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [June 17, 2018, 12:08am UTC](https://discourse.processing.org/t/scrolling-and-image/1003/4 "2018-06-17T00:08:38Z")

</div>

Use the `mouseWheel()` function :

[https://processing.org/reference/mouseWheel\_.html](https://processing.org/reference/mouseWheel_.html)

and add the `event.getCount()` to your image Y position.

---

<div class="post-metadata">

**Author:** ![poppanona](https://avatars.discourse-cdn.com/v4/letter/p/6f9a4e/32.png) [@poppanona](https://discourse.processing.org/u/poppanona)\
**Post date:** [June 17, 2018, 6:05am UTC](https://discourse.processing.org/t/scrolling-and-image/1003/5 "2018-06-17T06:05:53Z")

</div>

Thanks, I’ll browse through these. One seems to point the way for me.

---

<div class="post-metadata">

**Author:** ![poppanona](https://avatars.discourse-cdn.com/v4/letter/p/6f9a4e/32.png) [@poppanona](https://discourse.processing.org/u/poppanona)\
**Post date:** [June 17, 2018, 6:09am UTC](https://discourse.processing.org/t/scrolling-and-image/1003/6 "2018-06-17T06:09:26Z")

</div>

Thanks for your reply, My question was broad and [kfrajer](https://discourse.processing.org/u/kfrajer) pointed the way for me.
