summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorErik Pellikka <erik@pellikka.org>2016-02-23 09:40:41 -0500
committerMorris Jobke <hey@morrisjobke.de>2016-05-13 21:01:13 +0200
commit4e5f37a05dc3c97d6fd1a122dafd25630f809ecf (patch)
tree7e2a69ef882d9a4953b1afbce7b6495e923e8fe7 /apps/files/js
parentb94252e479a95490e4382f4f20c8e758f0c07689 (diff)
downloadnextcloud-server-4e5f37a05dc3c97d6fd1a122dafd25630f809ecf.tar.gz
nextcloud-server-4e5f37a05dc3c97d6fd1a122dafd25630f809ecf.zip
code style fix
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/files.js14
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);
}
}