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