Merge pull request #1233 from Hans5958/ghost-shift-be-gone

Fixing the ghost shifting, once and for all
This commit is contained in:
ash 2022-04-11 14:55:29 +01:00 committed by GitHub
commit 7db023633c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,7 +102,7 @@ hideListButton.addEventListener("click", function(e){
} else {
wrapper.classList.add('listHidden')
}
updateHovering();
updateHovering(e);
applyView();
render();
updateLines();
@ -154,7 +154,7 @@ window.addEventListener("resize", function(){
entriesListShown = false;
wrapper.className += " listHidden";
}
updateHovering();
updateHovering(e);
viewportWidth = document.documentElement.clientWidth;
@ -445,7 +445,7 @@ function buildObjectsList(filter, sort){
zoom = 4;
renderBackground(atlas);
applyView();
updateHovering();
updateHovering(e);
zoomOrigin = [
innerContainer.clientWidth/2 - this.entry.center[0]* zoom// + container.offsetLeft