diff options
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/files.js | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 3e7fcf3372b..38443842903 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -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); } } |