move layer in mouse position on click

  • Hi everyone, I don't understand how to do this:

    I have two layers, one parent, I wish that when I click in the parent the child moves in the position of click.

    I started with the krpano drag-layer example

    The way I found works if I set the child with align = center, but unfortunately being connected to another script I can't move it.

    The result is that when you click, the child level moves but with the parent's coordinates

    Someone can help me

    Thank you

    Kima

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!