Project

General

Profile

Actions

Bug #3170

closed
HH MV

Wt-3.3.2 : setDraggable and mouseWentUp are not compatible

Bug #3170: Wt-3.3.2 : setDraggable and mouseWentUp are not compatible

Added by Hyeoni Hwasoo over 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Michael Vilsker
Target version:
Start date:
05/20/2014
Due date:
% Done:

0%

Estimated time:

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);
node
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

Best regards
Hyeon

KD Updated by Koen Deforche over 12 years ago Actions #1

  • Status changed from New to InProgress
  • Assignee set to Michael Vilsker

MV Updated by Michael Vilsker about 12 years ago Actions #2

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

HH Updated by Hyeoni Hwasoo about 12 years ago Actions #3

Really thank you very very much.
I look forward to testing it !

Best regards
Hyeon

HH Updated by Hyeoni Hwasoo about 12 years ago Actions #4

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 ?

KD Updated by Koen Deforche almost 12 years ago Actions #5

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom