mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-09 04:02:23 +01:00
Fix logic on scroll buttons
This commit is contained in:
parent
4be423cfb8
commit
d5d01cf5af
@ -246,7 +246,7 @@ DynMap.prototype = {
|
|||||||
|
|
||||||
var updateHeight = function() {
|
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
|
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);
|
upbtn.toggle(scrollable);
|
||||||
downbtn.toggle(scrollable);
|
downbtn.toggle(scrollable);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user