angular-ui-tree icon indicating copy to clipboard operation
angular-ui-tree copied to clipboard

[Chrome Browser] drag-n-drop is broken

Open iamruss opened this issue 12 years ago • 27 comments

Here is the demo which uses the same code and markup as official http://jimliu.github.io/angular-ui-tree/tree.html

The only difference is that it uses the latest ui.tree code v2.1.4, while the official example uses 2.0.13.

It only works if you have this setup:

  1. have browser window with the tree
  2. have another browser window on top of it with whatever site loaded in it, overlapping the window with the tree
  3. make sure the browser window has focus (click on it) - move mouse over to the window with the tree and try dragging - it will work

Here is the animaged gif, demoing the behaviour: ui tree

In the Plunker example source code, feel free to uncomment v2.0.13 and it will work

iamruss avatar Jun 06 '14 22:06 iamruss

I tested it times, it seemed that it works on my chrome(the same version with yours), really wired!

I will test it again.

JimLiu avatar Jun 07 '14 03:06 JimLiu

When I tested it on windows, I got the same error! I'll fixed later!

JimLiu avatar Jun 07 '14 03:06 JimLiu

I've been having similar problems too.

ghost avatar Jul 04 '14 14:07 ghost

Hello, any update on this?

iamruss avatar Jul 08 '14 20:07 iamruss

Think I am having the same problems with the latest version 2.1.4.

Currently using 2.0.13, which works fine.

storkme avatar Jul 09 '14 12:07 storkme

We are having the same issue. Any news on this?

nielssj avatar Jul 31 '14 11:07 nielssj

Seems we encountering the same issue on Windows platform as well. Looking forward to a fix. It's really weird.

gregwym avatar Aug 06 '14 18:08 gregwym

My team is also having this issue. Any update on when a fix might happen?

ddotm avatar Aug 15 '14 13:08 ddotm

I cannot reproduce this bug. The tree is always movable, whatever I do. Could you confirm that you're still having the problem with the latest chrome version?

clementprevot avatar Aug 23 '14 10:08 clementprevot

We still observe this problem on windows + chrome. I will update with specific environment information later.

gregwym avatar Aug 23 '14 20:08 gregwym

I was able to resolve the problem by disabling Batarang Chrome extension. Once I disabled Batarang, the tree control began working without a problem.

ddotm avatar Aug 23 '14 21:08 ddotm

I do have Batarang activated and I cannot reproduce this bug. Any of you has more information?

It's quite difficult to solve a bug I cannot reproduce :smile:

clementprevot avatar Sep 06 '14 00:09 clementprevot

Hi @clementprevot ,

This bug does not happen all the time, but it is fairly frequent that we have encountered it few times a week. It just happened again on my colleague's windows box. Here is the environment information.

Chrome version: 37.0.2062.103 m OS: Windows 7 Enterprise SP1 x64 Angular-ui-tree: 2.1.4

We have two tree that are allowed to drag from the left one to the right one, or drag&drop within the right one.

What I observed is,

  1. Focus on the Chrome tab/window which has the page with three
  2. All the blocks are not drag-able
  3. Focus on another Chrome window, the blocks in both trees can be drag&dropped. The focus is brought back to the tab/widow with tree at the same time.
  4. All the blocks are not drag-able again.
  5. Focus on another application window, same as what happens to 3.

Hopefully these will help you to reproduce the problem.

gregwym avatar Sep 10 '14 15:09 gregwym

Greg, do you have Batarang enabled? The issue went away for me once I disabled Batarang.

ddotm avatar Sep 11 '14 18:09 ddotm

@ddotm no, I checked there were only three chrome apps installed on my colleague's Chrome, no extension. The apps are

  • PostMan
  • Rest Console

Cant remember the third one.

gregwym avatar Sep 12 '14 15:09 gregwym

Update, this issue appears in incognito mode as well. Thus this is not caused by extension/plugin.

gregwym avatar Sep 26 '14 15:09 gregwym

If anyone is still interested, just use nodrag attribute, instead of data-nodrag

ex37 avatar Mar 24 '15 16:03 ex37

Hi @ex37, thanks for the note! I will give a try and update here.

gregwym avatar Mar 24 '15 21:03 gregwym

Thanks ex37, looks like it works.

iamruss avatar Mar 25 '15 03:03 iamruss

Hi @ex37,

I just tried to use nodrag instead of data-nodrag but no luck. Apparently, angular-ui-tree does not recognize nodrag attribute.

Please see https://github.com/angular-ui-tree/angular-ui-tree/blob/master/source/services/helper.js#L56. It only check for specific data-nodrag attribute.

gregwym avatar Apr 13 '15 16:04 gregwym