Jump to content

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

Draggable autoscroll zoom

Recommended Posts

Hi guys,


i've been working with your Draggable library and got this issue:

  • i've got an container which contains my draggable object
  • i've got a input slider to zoom in/out my object
  • zooming through CSS transform: scale()
  • when zoomed in/out and dragging to autoscroll, my object will move away

Any suggestion how to zoom in/out the object and using autoscroll without my object moving away of the mouse pointer?



See the Pen BKVPGN by MTplusB (@MTplusB) on CodePen

Link to comment
Share on other sites

Hi and welcome to the GreenSock forums,


Thanks for providing the demo and for the clear description.


I'm not 100% sure (as I don't write the code), but fairly confident that the autoScroll feature currently has no way of knowing that you are manipulating the transforms on the container, nor was it designed to account for such a situation.


If there is a way to work around it or the type of thing that can be accounted for in a future release we will discuss and let you know.

Link to comment
Share on other sites

  • 2 weeks later...

Thanks for the solution guys. I'm gonna make more tests and will report if something happens. :)

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.