# V4 ion-scroll scroll-x scrolling in every direction

**URL:** <https://forum.ionicframework.com/t/v4-ion-scroll-scroll-x-scrolling-in-every-direction/137821>\
**Category:** Ionic Framework\
**Created:** [August 9, 2018, 9:42am UTC](https://forum.ionicframework.com/t/v4-ion-scroll-scroll-x-scrolling-in-every-direction/137821 "2018-08-09T09:42:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [August 9, 2018, 9:42am UTC](https://forum.ionicframework.com/t/v4-ion-scroll-scroll-x-scrolling-in-every-direction/137821/1 "2018-08-09T09:42:26Z")

</div>

First of all, I know it seems that scroll-x and scroll-y aren’t implemented yet in v4, I opened an issue about it [https://github.com/ionic-team/ionic/issues/14933](https://github.com/ionic-team/ionic/issues/14933)

Anyway, when I try to create manually a “scrollx” only effect on an `ion-scroll` I’m still able to scroll that element in any direction

Anyone achieved a proper scrollx or scrolly with v4?

Pseudo code:

```
<ion-scroll scroll-x="true">
   <div class="container"> 
     <p>One</p>
     <p>Two</p>
     <p>Three</p>
  </div>
</ion-scroll>

ion-scroll[scrollx=true], ion-scroll[scrollx=true] {
  overflow: hidden;
}

ion-scroll[scrollx=true] {
  position: relative;
  overflow-x: auto;
  height: 100px;
}

div.container {
   display: inline-flex;
 }

```

the problem could be reproduced in Chrome with `ionic serve` but is even more noticeable when running an app on a real iPhone

---

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [August 9, 2018, 10:02am UTC](https://forum.ionicframework.com/t/v4-ion-scroll-scroll-x-scrolling-in-every-direction/137821/2 "2018-08-09T10:02:23Z")

</div>

Fck my bad, the main overflow was set in my code to `auto` and not `hidden` 😂

```
ion-scroll[scrollx=true], ion-scroll[scrollx=true] {
   overflow: hidden; // <-- here I had auto
}
```

---

<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:25pm UTC](https://forum.ionicframework.com/t/v4-ion-scroll-scroll-x-scrolling-in-every-direction/137821/3 "2021-07-19T21:25:53Z")

</div>

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


