Sochettra / dynatree

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

Clicking on the scroll bar in a scrollable tree (overflow: scroll) causes onDragStart #278

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Declare a scrollable treeview (overflow: scroll, position: relative, height 
smaller than the number of rows that can fit).
2. Click on the vertical scrollbar and scroll, then release.
3. Move the mouse around without clicking. You'll see the drop zone graphic 
moving along, as if you're still dragging.

This is easily reproducible using the sample: 
http://wwwendt.de/tech/dynatree/doc/sample-dnd2.html

What is the expected output? What do you see instead?
I don't expect onDragStart to be triggered when clicking and dragging the 
scrollbar. Instead, it does.

What version of the dynatree and jQuery are you using?
dynatree-1.2.1_rc3
jquery-1.6.4.js

On what operating system and browser?
Windows (Chrome, IE, Firefox, Safari)
Lion (Chrome, Firefox, Safari)

What DOCTYPE declaration are you using?
<!DOCTYPE html>

Original issue reported on code.google.com by Freedman...@gmail.com on 15 Feb 2012 at 3:38

GoogleCodeExporter commented 8 years ago

Original comment by moo...@wwwendt.de on 16 Feb 2012 at 6:32

GoogleCodeExporter commented 8 years ago
This code should fix it:

    start: function(event, ui) {
        var sourceNode = ui.helper.data("dtSourceNode");
        return !!sourceNode; // Abort dragging if no Node could be found
    },

line 3196 in 1.2.1

Original comment by beagdok...@gmail.com on 9 Mar 2012 at 10:20

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r600.

Original comment by moo...@wwwendt.de on 9 Jun 2012 at 7:09