code style fix
This commit is contained in:
parent
b94252e479
commit
4e5f37a05d
|
@ -408,18 +408,10 @@ var dragOptions={
|
||||||
var bottom = $(window).innerHeight() - scrollArea;
|
var bottom = $(window).innerHeight() - scrollArea;
|
||||||
var top = $(window).scrollTop() + scrollArea;
|
var top = $(window).scrollTop() + scrollArea;
|
||||||
if (event.pageY < top){
|
if (event.pageY < top){
|
||||||
|
$(scrollingArea).scrollTop(currentScrollTop - 10);
|
||||||
$(scrollingArea).scrollTop(
|
|
||||||
currentScrollTop -= 10
|
|
||||||
);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (event.pageY > bottom) {
|
else if (event.pageY > bottom) {
|
||||||
|
$(scrollingArea).scrollTop(currentScrollTop + 10);
|
||||||
$(scrollingArea).scrollTop(
|
|
||||||
currentScrollTop += 10
|
|
||||||
);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue