public boolean hasToBeExecuted(DraggableOptions options) {
return options.isScroll();
}
public void onDrag(DraggableHandler handler, DragContext ctx, GqEvent e) {
DraggableOptions options = handler.getOptions();
Element draggableElement = ctx.getDraggable();
GQuery scrollParent = handler.getHelperScrollParent();
Element scrollParentElement = scrollParent.get(0);
if (scrollParentElement == null) {
return;
}
AxisOption axis = options.getAxis();
Offset overflowOffset = $(draggableElement).data(OVERFLOW_OFFSET_KEY,
Offset.class);
int scrollSensitivity = options.getScrollSensitivity();
int scrollSpeed = options.getScrollSpeed();
boolean scrolled = false;
if (scrollParentElement != null
&& scrollParentElement != $(GQuery.document).get(0)