Jump to content
Search Community

Get relative mouse position inside draggable container on click

cbert test
Moderator Tag

Recommended Posts

 Hi there, 

 

I'm brand new to gsap, so far I must say, great quality and documentation!

 

Nevertheless, I'm currently stuck with the following issue:

I have a pannable and zoomable container (=> transformed container) inside which I move elements around via gsap draggable.

To add new elements I'd like to point the pointer to an area inside this container and then add the element in that place.

 

So far, I couldn't find a way to get similar properties as I get with pointerX or pointerY that are relative to the transformed container.

Is there any way I could use gsap to get this?

 

I hope it's clear what I'd like to achieve 😀 Thanks in advance!

 

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.
×
×
  • Create New...