diff options
author | Erik Pellikka <erik@pellikka.org> | 2016-02-23 14:45:38 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-05-13 21:01:13 +0200 |
commit | 18b7b61f06cf4ea2015ba93b6ddf1e31d1a5f2af (patch) | |
tree | 942b56ac89664dbb1aa585052545342152713aeb /apps | |
parent | 5711e880933876f03178d6ec067a28d7dd4d5c6b (diff) | |
download | nextcloud-server-18b7b61f06cf4ea2015ba93b6ddf1e31d1a5f2af.tar.gz nextcloud-server-18b7b61f06cf4ea2015ba93b6ddf1e31d1a5f2af.zip |
Tweaking
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/files.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 9af9592929a..9694f0f11b2 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -402,20 +402,20 @@ var dragOptions={ }, drag: function(event, ui) { var currentScrollTop = $("#app-content").scrollTop(); - var scrollArea = Math.min(Math.floor($(window).innerHeight()/2), 300); + var scrollArea = Math.min(Math.floor($(window).innerHeight()/2), 100); var bottom = $(window).innerHeight() - scrollArea; var top = $(window).scrollTop() + scrollArea; if (event.pageY < top){ - $('html, body').animate({ - scrollTop: $("#app-content").scrollTop(currentScrollTop-=10) - },800); + + scrollTop: $("#app-content").scrollTop(currentScrollTop-=10); + } if (event.pageY > bottom) { - $('html, body').animate({ - scrollTop: $("#app-content").scrollTop(currentScrollTop+=10) - },800); + + scrollTop: $("#app-content").scrollTop(currentScrollTop+=10); + } } |