From d5d01cf5afad815bb89b472100565f3bbd65b9f4 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Tue, 16 Aug 2011 11:59:08 -0500 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); };