# Help with scrolling in android

**URL:** https://discourse.processing.org/t/help-with-scrolling-in-android/1254
**Category:** Processing for Android
**Created:** [June 25, 2018, 6:16pm UTC](https://discourse.processing.org/t/help-with-scrolling-in-android/1254 "2018-06-25T18:16:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![helplouis](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@helplouis](https://discourse.processing.org/u/helplouis)
#### Post date: [June 25, 2018, 6:16pm UTC](https://discourse.processing.org/t/help-with-scrolling-in-android/1254/1 "2018-06-25T18:16:51Z")

</div>

Hi, I want to make a scroller in this app im working on but i dont want a scrolling bar, just to touch and drag like in most apps. How would I go about to do this ? pls help

Alternatively, how can I detect which direction and distance I’m doing with  
void mouseDragged() {  
}

---

<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 25, 2018, 6:46pm UTC](https://discourse.processing.org/t/help-with-scrolling-in-android/1254/2 "2018-06-25T18:46:14Z")

</div>

You can use a ScrollView as shown here:

> [Scrollable image with ScrollView - Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/26515/scrollable-image-with-scrollview)

There is a recent post that might be able to do what you want except it might not be scrolling vertically by sideways. Not tested but it should work. [A carousel for graphs](https://discourse.processing.org/t/a-carousel-for-graphs/1087)

Kf

---

<div class="post-metadata">

### Author: ![helplouis](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@helplouis](https://discourse.processing.org/u/helplouis)
#### Post date: [June 25, 2018, 10:01pm UTC](https://discourse.processing.org/t/help-with-scrolling-in-android/1254/3 "2018-06-25T22:01:19Z")

</div>

KF thankyou so much holy, the links you sent were super helpful :DDD

It ended up by working with just a simple adding variable like so

dist += -pmouseY + mouseY;

perfect :DD
