Jump to content
Search Community

Increase margin in Draggable autoScroll.

rkk test
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

Hi,

 

Is there any way to change the 40px of margin for the autoScroll feature in Draggable to a higher value?

 

My page has a toolbar that overlays the page, and the main content of the page has a permanent top side padding of the side of the toolbar. The problem is that due to this I need to drag the element under the toolbar in order to reach the edge and the autoScroll feature to kick in. Changing the 40px value to a higher number would fix this issue. Is it even possible to do so?

 

Greetings and thanks.

 

More info: https://greensock.com/docs/Utilities/Draggable/autoScroll

  • Like 1
Link to comment
Share on other sites

  • 3 months later...

That's BRILLIANT, @Jack! I don't know whether it's what rkk was looking for (he never said), but it's very definitely what I need.
What's its current status? Is it still in this beta form? It doesn't seem to have been folded into the latest CDN.
Thanks HUGELY!

Link to comment
Share on other sites

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...