FLTK logo

Re: [LOW] STR #3432: Fl_Tree with FL_TREE_SELECT_SINGLE_DRAGGABLE Drops Into Wrong Place

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.bugs  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [LOW] STR #3432: Fl_Tree with FL_TREE_SELECT_SINGLE_DRAGGABLE Drops Into Wrong Place Greg Ercolano Aug 27, 2019  
 
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: https://www.fltk.org/str.php?L3432
Version: 1.4.0


To replicate, apparently one must drag an item UPWARDS from a position
lower than the new destination.

If one drags an item DOWNWARD from a higher position in the tree, the bug
doesn't happen.

So to replicate the bug in the test/tree program (1.4.x):

    1) Open test/tree
    2) Change "Selection Mode:" to Single+drag
    3) Under ROOT->Bbb->child-01:
          a) Click and hold on '333'
          b) Drag it upwards and hover over the "Child-01" label
          c) Release mouse button to drop

Result is the '333' item ends up one level above the folder instead of
inside it at the top.



Interestingly, if you try dragging an item that is higher up the tree
downward using the same technique, it works fine, e.g.

    1) Click the 'Aaa' item
    2) Drag it DOWNWARD and hover over the 'child-01' label
    3) Release the mouse button to drop

..that works fine, no matter where the "draw-line" is.


Link: https://www.fltk.org/str.php?L3432
Version: 1.4.0


Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.