I'm using dnd on a 120px tall dgrid and it's nearly impossible to hit my drop target. The default auto-scroll feature is too fast for this small grid. Is there a way to set an acceleration value or correlate the scroll speed with the closeness to the grid edge?
So far I've found dojo.dnd.autoscroll but those properties seem unrelated to scroll speed.
One solution is to modified autoscroll.js directly by changing autoScrollNodes:
// injected acceleration logic
if(ry > 0 && ry < b.h){
if(ry < h){
dy = -h * (1.0 - ry / h);
}else if(ry > b.h - h){
dy = h * (1.0 - (b.h-ry) / h);
}
oldTop = n.scrollTop;
n.scrollTop = n.scrollTop + dy;
}