Jump to content
Search Community

native vertical scroll within Draggable type 'x'

usheeen
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Posted

Is it possible to have natively vertical scroll elements within a horizontal Draggable element?

See the Pen Abfwk by oisinlavery (@oisinlavery) on CodePen.

Posted

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.

Posted

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.

  • 3 months later...
Posted

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...