Share Posted July 12, 2017 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 1 Link to comment Share on other sites More sharing options...
Share Posted July 13, 2017 You've got it. Preview (uncompressed) here: https://s3-us-west-2.amazonaws.com/s.cdpn.io/16327/Draggable-latest-beta.js You can define autoScrollMarginTop, autoScrollMarginBottom, autoScrollMarginLeft, and/or autoScrollMarginRight. Is that what you're looking for? 3 Link to comment Share on other sites More sharing options...
Share Posted October 27, 2017 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 More sharing options...
Share Posted October 28, 2017 Yep, it should be in 1.20.3 indeed Link to comment Share on other sites More sharing options...
Share Posted October 28, 2017 Great, @Jack! That's all the encouragement I need to move from being a freeloader to becoming a ShockinglyGreen member. 2 Link to comment Share on other sites More sharing options...
Share Posted October 28, 2017 Welcome to the club, @Velojet! Thanks so much for joining. We sure appreciate your support. Happy tweening (and dragging) 1 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