ellg / gwtquery-plugins

Automatically exported from code.google.com/p/gwtquery-plugins
0 stars 0 forks source link

CellTree scrolling during drag operation - introduce possibility to specify custom scroll container #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There should be some possibility to specify container which should scroll 
during drag operation.

Currently draggable widgets scroll only their originating widgets, e.g. when 
dragging item from cell tree, then the cell tree scrolls. In case one wants to 
drag different draggable widget into the cell tree, not the cell tree scrolls, 
but the widget being dragged. 

There should be some way to enable scrolling of different container than the 
original one because user wants to scroll the target widget, not the source 
widget. 

The best solution would be to obtain the scroll container dynamically during 
the drag operation.

Original issue reported on code.google.com by Mario.Le...@gmail.com on 5 Oct 2011 at 11:14

GoogleCodeExporter commented 9 years ago
I think the best is to give the possibility to make a drop target scrollable 
when the drag helper is hovering it.

Original comment by julien.d...@gmail.com on 24 Oct 2011 at 9:31

GoogleCodeExporter commented 9 years ago
Sure, that would be best solution. A droppable widget should scroll if and only 
if:
- it has the same scope as current draggable
- scrolling on drag is enabled in droppable options (it should be part of 
droppable options, not draggable as currently)
- drag helper is hovering droppable widget (based on droppable tolerance 
setting)

It would be nice if user could explicitly specify in droppable options:
- if this droppable widget scrolls on drag helper hover or not
- if it scrolls, custom scroll panel can be also specified

Original comment by Mario.Le...@gmail.com on 24 Oct 2011 at 11:08