|
function created() {
ej.grids.Reorder.prototype.updateScrollPostion = function (e) {
var _this = this;
var x = ej.grids.getPosition(e).x;
var cliRect = this.parent.element.getBoundingClientRect();
var cliRectBaseRight = cliRect.right;
if (this.parent.isFrozenGrid()) {
this.updateFrozenScrollPosition(x, cliRect);
} else {
var cliRectBaseLeft = cliRect.left;
var scrollElem_1 = this.parent.getContent().firstElementChild;
if (x > cliRectBaseLeft && x < cliRectBaseLeft + 35) {
this.timer = window.setInterval(function () {
_this.setScrollLeft(scrollElem_1, true);}, 5); //changing
the interval to 5 to increase the scroll speed
} else if (x < cliRectBaseRight && x > cliRectBaseRight - 35) {
this.timer = window.setInterval(function () {
_this.setScrollLeft(scrollElem_1, false); }, 5);//changing the
interval to 5 to increase the scroll speed
}
}
};
}
|