Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
rkk

Increase margin in Draggable autoScroll.

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

Yep, it should be in 1.20.3 indeed :)

Link to comment
Share on other sites

Great, @Jack! That's all the encouragement I need to move from being a freeloader to becoming a ShockinglyGreen member.

  • Like 2
Link to comment
Share on other sites

Welcome to the club, @Velojet! Thanks so much for joining. We sure appreciate your support. Happy tweening (and dragging) ;)

  • Like 1
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.
×