Jump to content
Search Community

Nested `Draggable` instances

BlackArtNet test
Moderator Tag

Go to solution Solved by Carl,

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

Hello.

I'm trying to use draggable on bootstrap's `panel` element.

But when keeping panel inside of panel (nesting panels) dragging panel inside still triggers onDragStart event of the top level panel.

I have used only the '.panel-title' as draggable trigger so the trigger elements are not nested. Is there any solution for such a problem?

Link to comment
Share on other sites

  • Solution

Hi and welcome to the GreenSock forums,

 

It's really hard to troubleshoot something like this without a demo. 

Unfortunately I'm not very familiar with Bootstrap either.

 

Diaco created some great demos showing how to handle nested Draggables:

 

http://codepen.io/MAW/pen/waxdOX

http://codepen.io/MAW/pen/doPLME DOM use circle to rotate

http://codepen.io/MAW/pen/QwxXgx SVG use circle to rotate

 

If you still need help please provide a very simple reduced test case that clearly illustrates the issue.

 

Thanks!

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