Explorar o código

Fix scrolling

Nathaniel van Diepen %!s(int64=10) %!d(string=hai) anos
pai
achega
38269688b1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/www/js/omnomirc.js

+ 1 - 1
app/www/js/omnomirc.js

@@ -752,7 +752,7 @@
 					abbrDate('abbr.date');
 					$o.ui.render.users();
 					setTimeout(function scrollContent(){
-						if($c.scrollTop() < $c[0].scrollHeight){
+						if($c.scrollTop()+$c.height() < $c.prop('scrollHeight')){
 							$c.scrollTop($c.scrollTop()+1);
 							setTimeout(scrollContent,settings.scrollspeed);
 						}else{