# Horizontal scroll problem

**URL:** <https://forum.ionicframework.com/t/horizontal-scroll-problem/3383>\
**Category:** ionic-v1\
**Created:** [April 25, 2014, 1:33pm UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383 "2014-04-25T13:33:58Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![maleeb](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/maleeb/32/140228_2.png) [@maleeb](https://forum.ionicframework.com/u/maleeb)\
**Post date:** [April 25, 2014, 1:33pm UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383/1 "2014-04-25T13:33:59Z")

</div>

Hello,  
i found a code for horizontal scroll in this thread “[List doesn’t scroll horizntally](http://forum.ionicframework.com/t/list-doesnt-scroll-horizntally/2210/3)” and begin to test.

I need many scrollable horizontal lists with items like in my copy here ( [http://codepen.io/5uper/pen/ItahH](http://codepen.io/5uper/pen/ItahH) ).

But the problem is that i cannot more scroll vertically truth the lists.

Hope anyone knows the problem.

---

<div class="post-metadata">

**Author:** ![ysngms](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ysngms/32/116464_2.png) [@ysngms](https://forum.ionicframework.com/u/ysngms)\
**Post date:** [April 26, 2014, 11:36am UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383/2 "2014-04-26T11:36:57Z")

</div>

I’m also interested, anyone has a solution?

---

<div class="post-metadata">

**Author:** ![maleeb](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/maleeb/32/140228_2.png) [@maleeb](https://forum.ionicframework.com/u/maleeb)\
**Post date:** [April 30, 2014, 6:02am UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383/3 "2014-04-30T06:02:01Z")

</div>

i cannot find a solution, its only detects the horizontal slide

---

<div class="post-metadata">

**Author:** ![Calendee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calendee/32/13656_2.png) [@Calendee](https://forum.ionicframework.com/u/Calendee)\
**Post date:** [May 1, 2014, 9:29pm UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383/4 "2014-05-01T21:29:36Z")

</div>

Have you tried this :

> **[Ionic - Horizontal Scroll](https://codepen.io/calendee/pen/HIuft/?editors=111)**
>
> Example of using ion-scroll to scroll horizontally and arbitrary distance ...

> **[Horizontal button bar scroller](http://forum.ionicframework.com/t/horizontal-button-bar-scroller/2842/8)**
>
> TADA : http://codepen.io/calendee/pen/HIuft/?editors=111 Requires nightly.

---

<div class="post-metadata">

**Author:** ![maleeb](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/maleeb/32/140228_2.png) [@maleeb](https://forum.ionicframework.com/u/maleeb)\
**Post date:** [May 1, 2014, 10:49pm UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383/5 "2014-05-01T22:49:21Z")

</div>

> [@Calendee](#):
>
> [http://codepen.io/5uper/pen/ItahH](http://codepen.io/5uper/pen/ItahH)

Hello @Calendee  
first thx for your help.  
yes i try your code but this is not what i mean, have u tried my code?  
https://codepen.io/ysngms/embed/preview/ItahH?default-tabs=html%2Cresult&height=300&host=https%3A%2F%2Fcodepen.io&slug-hash=ItahH

If i have many “…”  
The problem is that i cannot scroll to the bottom one. It only detects the horizontal scroll if i try to scroll vertically.

I will scroll vertical to find the list of items i want than i will scroll horizontal. I will build a gallery scroller with categories.

I this possible ?

---

<div class="post-metadata">

**Author:** ![tamvo](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@tamvo](https://forum.ionicframework.com/u/tamvo)\
**Post date:** [May 2, 2014, 3:35am UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383/6 "2014-05-02T03:35:36Z")

</div>

Also, is there anyway to snap to element like this example from iscroll: [https://github.com/cubiq/iscroll/blob/master/demos/snap/index.html](https://github.com/cubiq/iscroll/blob/master/demos/snap/index.html)

If not yet, I think we should have in later versions because it looks like ios data picker.

---

<div class="post-metadata">

**Author:** ![maleeb](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/maleeb/32/140228_2.png) [@maleeb](https://forum.ionicframework.com/u/maleeb)\
**Post date:** [May 2, 2014, 7:37am UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383/7 "2014-05-02T07:37:03Z")

</div>

@tamvo  
yeah like this but horizontal scroll must separately scrollable for each list

---

<div class="post-metadata">

**Author:** ![Calendee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calendee/32/13656_2.png) [@Calendee](https://forum.ionicframework.com/u/Calendee)\
**Post date:** [May 2, 2014, 12:39pm UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383/8 "2014-05-02T12:39:00Z")

</div>

I see what you are saying. Unfortunately, I don’t see any way around it. That `direction="x"` is essentially telling it to ignore/void all other directions.

Anyone else have ideas?

---

<div class="post-metadata">

**Author:** ![romanrast](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@romanrast](https://forum.ionicframework.com/u/romanrast)\
**Post date:** [May 7, 2014, 7:48pm UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383/9 "2014-05-07T19:48:26Z")

</div>

I have the exact same problem. Hope there will be a solution very soon! I realy need it for my app.

---

<div class="post-metadata">

**Author:** ![timmyg13](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@timmyg13](https://forum.ionicframework.com/u/timmyg13)\
**Post date:** [July 16, 2014, 7:15pm UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383/10 "2014-07-16T19:15:58Z")

</div>

> [@tamvo](#):
>
> snap

any update on this? Trying to get it to snap.

---

<div class="post-metadata">

**Author:** ![TheJetlag](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@TheJetlag](https://forum.ionicframework.com/u/TheJetlag)\
**Post date:** [August 20, 2014, 12:38pm UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383/11 "2014-08-20T12:38:40Z")

</div>

I’m also facing this problem, any news?

---

<div class="post-metadata">

**Author:** ![yehiasalam](https://avatars.discourse-cdn.com/v4/letter/y/f08c70/32.png) [@yehiasalam](https://forum.ionicframework.com/u/yehiasalam)\
**Post date:** [October 5, 2014, 3:14pm UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383/12 "2014-10-05T15:14:23Z")

</div>

yup same problem, @ionicteam

---

<div class="post-metadata">

**Author:** ![L1xx3r](https://avatars.discourse-cdn.com/v4/letter/l/58956e/32.png) [@L1xx3r](https://forum.ionicframework.com/u/L1xx3r)\
**Post date:** [October 8, 2014, 5:05pm UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383/13 "2014-10-08T17:05:43Z")

</div>

Same here… I been trying to use the paging on ion-scroll but allow it to show some of the next page, but no success.

---

<div class="post-metadata">

**Author:** ![patrickrho](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@patrickrho](https://forum.ionicframework.com/u/patrickrho)\
**Post date:** [October 10, 2014, 6:27pm UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383/14 "2014-10-10T18:27:04Z")

</div>

Anyone found a solution for this? I need to be able to embed multiple horizontal scroll inside of a vertically scrollable page.

---

<div class="post-metadata">

**Author:** ![bra1n](https://avatars.discourse-cdn.com/v4/letter/b/7ab992/32.png) [@bra1n](https://forum.ionicframework.com/u/bra1n)\
**Post date:** [October 22, 2014, 2:06pm UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383/15 "2014-10-22T14:06:33Z")

</div>

Here’s a demonstration of the problem: [http://codepen.io/anon/pen/BoGkA](http://codepen.io/anon/pen/BoGkA)  
A solution is included, if you remove the “return false;” line from the controller, it will override the “preventDefault”-code that keeps the scroll events from bubbling up through the dom to the parent scroll container.  
At least it works for the demonstrated situation, maybe it will help someone else, too. 😄

---

<div class="post-metadata">

**Author:** ![vnabet](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@vnabet](https://forum.ionicframework.com/u/vnabet)\
**Post date:** [January 15, 2015, 5:12pm UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383/17 "2015-01-15T17:12:25Z")

</div>

Great job ! Work fine !

And is it possible to lock vertical page scroll during ion-scroll horizontal scroll ? (and also the reverse)

thx

---

<div class="post-metadata">

**Author:** ![Levitay](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@Levitay](https://forum.ionicframework.com/u/Levitay)\
**Post date:** [May 1, 2017, 11:58pm UTC](https://forum.ionicframework.com/t/horizontal-scroll-problem/3383/18 "2017-05-01T23:58:31Z")

</div>

hi Calendee, thanks for this horizontal scroll, after a long search i find this one that works good and simple for me.  
but i hope you can help me in here,  
with your short code i can only put this buttons that scroll (what inside the tag),  
but when i try to put a container or image or other dives inside this ion-scroll section it is not scroll horizontal,  
when i add images from example it add them one under the other insted of one side to the other (like it works with the a tag), you can understand what i do wrong? in general i like to get a section (like this ) and put inside containers that will scroll horizontal, is it possible? i hope you can help me in here…
