Jump to content
Search Community

Draggable autoscroll zoom

MTplusB test
Moderator Tag

Go to solution Solved by GreenSock,

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

 

Thanks

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

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