Share Posted October 8, 2014 Is it possible to have natively vertical scroll elements within a horizontal Draggable element? See the Pen Abfwk by oisinlavery (@oisinlavery) on CodePen Link to comment Share on other sites More sharing options...
Share Posted October 8, 2014 Hi, I'm sorry but I'm a bit confused by your question. You mean been able to Dragg an element by the scroll bar or the scroll path?. If that's what you're after I don't know. Never heard of someone hijacking the scroll bar/path normal behaviour and I don't have the slightest clue of how it could be done. If you mean something different please elaborate a bit more in order to get a better idea of what you're trying to achieve. Rodrigo. Link to comment Share on other sites More sharing options...
Author Share Posted October 9, 2014 Ok, let me try to explain... If you look at my See the Pen Abfwk by oisinlavery (@oisinlavery) on CodePen , the inner text of .page isn't scrollable on a touch device because the parent element .pages has a Draggable attached which seems to be intercepting the touch events. Link to comment Share on other sites More sharing options...
Share Posted October 9, 2014 Hi, Maybe this previous post could be useful in your particular scenario. If not please let us know. http://greensock.com/forums/topic/9470-draggable-on-mobile-how-to-manage-horizontal-draggable-and-native-vertical-scroll-webkit/ Rodrigo. Link to comment Share on other sites More sharing options...
Author Share Posted January 13, 2015 I solved this by nesting Draggables - the outer is of type: "x y" and inner type: "scroll". One thing that would be so useful is to allow lockAxis to work between 2 Draggables, are there any such plans to make this work? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now