# Scroll with both X and Y at the same time (diagonal scrolling)

**URL:** <https://forum.ionicframework.com/t/scroll-with-both-x-and-y-at-the-same-time-diagonal-scrolling/118711>\
**Category:** ionic-v3\
**Created:** [January 19, 2018, 3:15am UTC](https://forum.ionicframework.com/t/scroll-with-both-x-and-y-at-the-same-time-diagonal-scrolling/118711 "2018-01-19T03:15:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ady](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@ady](https://forum.ionicframework.com/u/ady)\
**Post date:** [January 19, 2018, 3:15am UTC](https://forum.ionicframework.com/t/scroll-with-both-x-and-y-at-the-same-time-diagonal-scrolling/118711/1 "2018-01-19T03:15:01Z")

</div>

Hello!

I’m trying to make a page in my app that shows a div with the user being able to pan over it. So far I’ve got it working by using simple scrolling:

```auto
<ion-content>
  <ion-scroll scrollX="true" class="mapView" style="white-space: nowrap; overflow: scroll; height: 1000px;">
      <div style="width: 1000px; height: 1000px;">(Stuff to pan over)</div>
  </ion-scroll>
</ion-content>

```

And then with the page’s CSS:

```auto
.mapView .scroll-zoom-wrapper {
    width: 100%;
}

```

This lets me scroll both the X and Y of the entire page. The problem I’m facing is that I can’t scroll both the X and Y at the same time (diagonally). Once I start scrolling in the X axis, I have to stop scrolling before being able to scroll in the Y axis, and vice versa.

Is there a way to be able to scroll on both axis at the same time? Or perhaps a better way to accomplish this effect entirely?

Thanks very much!

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:54pm UTC](https://forum.ionicframework.com/t/scroll-with-both-x-and-y-at-the-same-time-diagonal-scrolling/118711/2 "2021-07-19T21:54:28Z")

</div>

Closed on July 19, 2021, 9:54pm UTC


