pcirella / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

Context menu not compatible with drag'n'drop #174

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add drag'n'drop functionality to the context menu sample

What is the expected output? What do you see instead?
Drag'n'drop stops working

This is related to issue 171 and issue 173.
There we proposed workarounds using tree.renderInvisibleNodes() and 
tree.onRender().

This issue aims at the root problem:
jquery.contextMenu.js seems to block mouse events.

Original issue reported on code.google.com by moo...@wwwendt.de on 23 Jan 2011 at 9:44

GoogleCodeExporter commented 9 years ago
These possible solutions come to my mind:
- isn't that what live events where made for?
  I wonder why these plugins do not use live events or event delegation...
- are there other plugins that are more cooperative?
- jquery.contextMenu.js calls stopPropagation() twice. That seemed to solve the 
issue, but still needs some testing.

Original comment by moo...@wwwendt.de on 23 Jan 2011 at 9:47

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 23 Jan 2011 at 10:29

GoogleCodeExporter commented 9 years ago
Our sample context menu plugin seem no longer be supported:
   http://abeautifulsite.net/contact
but there are a lot of others:
   http://plugins.jquery.com/plugin-tags/context-menu

Original comment by moo...@wwwendt.de on 23 Jan 2011 at 1:33

GoogleCodeExporter commented 9 years ago
Patched the context menu plugin:
    http://code.google.com/p/dynatree/source/browse/trunk/doc/contextmenu/jquery.contextMenu-custom.js

and added drag'n'drop to the context menu sample to test it
    http://wwwendt.de/tech/dynatree/doc/sample-contextmenu.html

Original comment by moo...@wwwendt.de on 17 Feb 2011 at 7:47

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r467.

Original comment by moo...@wwwendt.de on 17 Feb 2011 at 7:49

GoogleCodeExporter commented 9 years ago
considered verified

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:16

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:19