Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horizontal ion-scroll not scrollable when draggable side-menu #1725

Closed
KillerCodeMonkey opened this issue Jul 4, 2014 · 4 comments
Closed
Assignees

Comments

@KillerCodeMonkey
Copy link
Contributor

hey guys,

i have a simple page with a side-menu and in the content area a ion-scroll container.
The ion-scroll should scroll only on the x-axis.

The problem is:
Scrolling does not work.
If i disable dragging -> it is fine.

But i wanna have both functionalities.

My current solution is an own directive, that listening on touchstart and touchend and sets $ionicSideMenuDelegate.canDragContent(false/true) on the fly.

Greets, bengtler

forum thread:
http://forum.ionicframework.com/t/ion-scroll-not-scrollable-when-draggable-side-menu/6361

Codepen:
http://codepen.io/mhartington/pen/ilycn

@perrygovier
Copy link
Contributor

Hey @KillerCodeMonkey, thanks for the example. I think you're on the right track with the directive approach.

How common is this issue? I'd like to open it up to discussion to see if there's enough demand to add it to the core.

@ajoslin
Copy link
Contributor

ajoslin commented Jul 8, 2014

Since the latest commit, when using the nightly build, you should finally be able to achieve this.

Use the new edge-drag-threshold attribute, so dragging on the side menu only works if it started from the edge of the screen. Then all other drag actions will scroll the content.

http://ionicframework.com/docs/nightly/api/directive/ionSideMenuContent/

@ajoslin ajoslin closed this as completed in ab500f2 Jul 8, 2014
@ajoslin
Copy link
Contributor

ajoslin commented Jul 8, 2014

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 6, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants