Bug #3170
Wt-3.3.2 : setDraggable and mouseWentUp are not compatible
0%
Description
Hi,
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.
node~~label()>setDraggable("own_type", dragImage, true);label()~~>mouseWentUp.connect(...);
node
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
Best regards
Hyeon
Updated by Koen Deforche about 8 years ago
- Status changed from New to InProgress
- Assignee set to Michael Vilsker
Updated by Michael Vilsker about 8 years ago
- Status changed from InProgress to Resolved
The changes will appear in git soon.
Note: on firefox right click will call the default menu and mouse event but on chrom it will work only if you disable the default default behavior.
Updated by Hyeoni Hwasoo about 8 years ago
Really thank you very very much.
I look forward to testing it !
Best regards
Hyeon
Updated by Hyeoni Hwasoo about 8 years ago
Hi Michael,
I pulled the git commit number 1034. I obtained a javascript error message. So I changed the line 2117 (file src/web/skeleton/Wt.js) from :
if (button(e) === 2)
to :
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 ?