Browse Source

Fix scrolling

Nathaniel van Diepen 10 năm trước cách đây
mục cha
commit
38269688b1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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{