Wt-3.3.2 : setDraggable and mouseWentUp are not compatible
I think there is a bug
With Wtree and WTreeNode I would like to be able to have a drag & drop function and at the same time to have the ability to right-click to popup a contextual menu.
Features work separately but not together : only a very few times the right click fires the contextual menu : this behaviour is very erratic.
>setDraggable("own_type", dragImage, true);label()~~>mouseWentUp.connect(...);
Ref : http://redmine.webtoolkit.eu/boards/2/topics/9012
Wt : 3.3.2 (WT_CPP_11_MODE \"-std=c+11\", g+ 4.7.2-5)
OS : Debian Wheezy amd64 - firefox 28.0 64 bit
Updated by Hyeoni Hwasoo about 8 years ago
if (button(e) === 2)
if (WT.button(e) != 1)
and now it works ! (on FF, IE, Chrome, Opera, Safari), thanx very much ! Note : the = does not seem to work properly here. I used instead.
However, just for thinking, maybe it should be better to be able to have a right-click context and a drag and drop with the right-click ? Is it possible ?