Browse Source

Tweaking

remotes/origin/throw-loginexception-failed-login
Erik Pellikka 10 years ago
committed by Morris Jobke
parent
commit
18b7b61f06
No known key found for this signature in database GPG Key ID: 9CE5ED29E7FCD38A
  1. 14
      apps/files/js/files.js

14
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);
}
}

Loading…
Cancel
Save