aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/files.js14
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);
+
}
}