Fix logic on scroll buttons
This commit is contained in:
parent
98b3bdfde3
commit
55dc6397e1
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue