diff options
author | Erik Pellikka <erik@pellikka.org> | 2016-02-23 09:40:41 -0500 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-05-13 21:01:13 +0200 |
commit | 4e5f37a05dc3c97d6fd1a122dafd25630f809ecf (patch) | |
tree | 7e2a69ef882d9a4953b1afbce7b6495e923e8fe7 /apps/files/js | |
parent | b94252e479a95490e4382f4f20c8e758f0c07689 (diff) | |
download | nextcloud-server-4e5f37a05dc3c97d6fd1a122dafd25630f809ecf.tar.gz nextcloud-server-4e5f37a05dc3c97d6fd1a122dafd25630f809ecf.zip |
code style fix
Diffstat (limited to 'apps/files/js')
-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); } } |