From 55dc6397e1f234ce0a697c3ea1ab0c129c6c049e Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Wed, 17 Aug 2011 00:59:08 +0800 Subject: [PATCH] Fix logic on scroll buttons --- web/js/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/map.js b/web/js/map.js index 48324ac3..0bccc1ba 100644 --- a/web/js/map.js +++ b/web/js/map.js @@ -246,7 +246,7 @@ DynMap.prototype = { var updateHeight = function() { playerlist.height(sidebar.innerHeight() - (playerlist.offset().top - worldlist.offset().top) - 64); // here we need a fix to avoid the static value, but it works fine this way :P - var scrollable = playerlist.scrollHeight() < playerlist.height(); + var scrollable = playerlist.scrollHeight() > playerlist.height(); upbtn.toggle(scrollable); downbtn.toggle(scrollable); };