@qooxdoo/framework
Version:
The JS Framework for Coders
49 lines (36 loc) • 1.17 kB
JavaScript
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2014 1&1 Internet AG, Germany, http://www.1und1.de
License:
MIT: https://opensource.org/licenses/MIT
See the LICENSE file in the project's top-level directory for details.
Authors:
* Mustafa Sak (msak)
************************************************************************ */
/**
* Provides scrolling ability during drag session to the widget.
*/
qx.Class.define("qx.ui.core.DragDropScrolling", {
extend: qx.core.Object,
include: [qx.ui.core.MDragDropScrolling],
construct(widget) {
super();
this._widget = widget;
},
members: {
_widget: null,
/**
* Returns the root widget whose children will have scroll on drag session
* behavior. Widget was set on constructor or will be application root by
* default.
*
* @return {qx.ui.core.Widget} The root widget whose children will have
* scroll on drag session
*/
_getWidget() {
return this._widget || qx.core.Init.getApplication().getRoot();
}
}
});