lucrampro Posted May 14, 2020 Share Posted May 14, 2020 [EDIT] Hi all, Sorry for my first presentation of this post a had clean this for you so with my new pen i want to on drag i can simulate scroll y for look all imgs can you help me ? Lucram See the Pen eYpLgax?editors=0010 by Lucrampro (@Lucrampro) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted May 14, 2020 Share Posted May 14, 2020 Hey lucrampro. What do you mean "when I drag I can drag more of the end"? Also it'd be really helpful if you created a minimal example of your issue using CodePen, StackBlitz, or CodeSandbox. Link to comment Share on other sites More sharing options...
lucrampro Posted May 14, 2020 Author Share Posted May 14, 2020 Thnks for your reply i have edit my post with a codepen !! you can see a green partit this green it the end of my drag zone but i want my drag zone end with my last img... sorry for my english Link to comment Share on other sites More sharing options...
ZachSaucier Posted May 14, 2020 Share Posted May 14, 2020 Your code is confusing to me. Why do you need all of those calculations? Why do you need two draggables? What is your end goal? Link to comment Share on other sites More sharing options...
lucrampro Posted May 15, 2020 Author Share Posted May 15, 2020 i have edit this post for more comprehention !! sorry Link to comment Share on other sites More sharing options...
ZachSaucier Posted May 15, 2020 Share Posted May 15, 2020 2 hours ago, lucrampro said: i have edit this post for more comprehention !! sorry Thanks, that demo is much more clear Since the element doesn't actually have a scrollbar, you should use type: 'x'. You should also size the bounds based on the width of the draggable: See the Pen zYvJeVp?editors=0010 by GreenSock (@GreenSock) on CodePen 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