PDA

View Full Version : Contentpanel dragged when scrolling



ole.spielberg
24 Nov 2011, 2:41 PM
Hi all

I have a contentpanel which i have made draggable, i have constrainted the movement to horizontal by calling :
setConstrainVertical(true); and also set the distance of movement before drag starts to : setStartDragDistance(20);

My problem is that when the contentpanel has an scrollbar added (AUTOY) and i use this scrollbar more than 20px it triggers a drag process, even though i am moving the mouse vertical (>20px) and the contentpanel is only allowed to be dragged horizontally.

Seems that draggable does not take into account that the scroll movement in the Y axis scould not trigger a drag process when the component is constrained from moving in the Y axis.

Any suggestions ?