code style fix

This commit is contained in:
Erik Pellikka 2016-02-23 09:40:41 -05:00 committed by Morris Jobke
parent b94252e479
commit 4e5f37a05d
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with 3 additions and 11 deletions

View File

@ -408,18 +408,10 @@ var dragOptions={
var bottom = $(window).innerHeight() - scrollArea;
var top = $(window).scrollTop() + scrollArea;
if (event.pageY < top){
$(scrollingArea).scrollTop(
currentScrollTop -= 10
);
$(scrollingArea).scrollTop(currentScrollTop - 10);
}
else if (event.pageY > bottom) {
$(scrollingArea).scrollTop(
currentScrollTop += 10
);
else if (event.pageY > bottom) {
$(scrollingArea).scrollTop(currentScrollTop + 10);
}
}