From 4e5f37a05dc3c97d6fd1a122dafd25630f809ecf Mon Sep 17 00:00:00 2001 From: Erik Pellikka Date: Tue, 23 Feb 2016 09:40:41 -0500 Subject: code style fix --- apps/files/js/files.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'apps/files/js/files.js') 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); } } -- cgit v1.2.3