mirror of
https://github.com/placeAtlas/atlas.git
synced 2025-01-20 02:42:01 +01:00
Remove unused event variables
This commit is contained in:
parent
a593715eb8
commit
1bc798dbe1
2 changed files with 7 additions and 7 deletions
|
@ -195,7 +195,7 @@ async function init() {
|
||||||
|
|
||||||
document.getElementById("loading").classList.add("d-none")
|
document.getElementById("loading").classList.add("d-none")
|
||||||
|
|
||||||
document.getElementById("zoomInButton").addEventListener("click", function (e) {
|
document.getElementById("zoomInButton").addEventListener("click", function () {
|
||||||
|
|
||||||
/*if(zoomAnimationFrame){
|
/*if(zoomAnimationFrame){
|
||||||
window.cancelAnimationFrame(zoomAnimationFrame)
|
window.cancelAnimationFrame(zoomAnimationFrame)
|
||||||
|
@ -219,7 +219,7 @@ async function init() {
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
document.getElementById("zoomOutButton").addEventListener("click", function (e) {
|
document.getElementById("zoomOutButton").addEventListener("click", function () {
|
||||||
|
|
||||||
/*if(zoomAnimationFrame){
|
/*if(zoomAnimationFrame){
|
||||||
window.cancelAnimationFrame(zoomAnimationFrame)
|
window.cancelAnimationFrame(zoomAnimationFrame)
|
||||||
|
@ -242,7 +242,7 @@ async function init() {
|
||||||
applyZoom(x, y, zoom)
|
applyZoom(x, y, zoom)
|
||||||
})
|
})
|
||||||
|
|
||||||
document.getElementById("zoomResetButton").addEventListener("click", function (e) {
|
document.getElementById("zoomResetButton").addEventListener("click", function () {
|
||||||
zoom = 1
|
zoom = 1
|
||||||
zoomOrigin = [0, 0]
|
zoomOrigin = [0, 0]
|
||||||
scaleZoomOrigin = [0, 0]
|
scaleZoomOrigin = [0, 0]
|
||||||
|
|
|
@ -114,13 +114,13 @@ offcanvasDraw.addEventListener('hidden.bs.offcanvas', function () {
|
||||||
applyView()
|
applyView()
|
||||||
})
|
})
|
||||||
|
|
||||||
offcanvasList.addEventListener('show.bs.offcanvas', function (e) {
|
offcanvasList.addEventListener('show.bs.offcanvas', function () {
|
||||||
wrapper.classList.remove('listHidden')
|
wrapper.classList.remove('listHidden')
|
||||||
wrapper.classList.add('listTransitioning')
|
wrapper.classList.add('listTransitioning')
|
||||||
applyView()
|
applyView()
|
||||||
})
|
})
|
||||||
|
|
||||||
offcanvasList.addEventListener('shown.bs.offcanvas', function (e) {
|
offcanvasList.addEventListener('shown.bs.offcanvas', function () {
|
||||||
entriesListShown = true
|
entriesListShown = true
|
||||||
wrapper.classList.remove('listTransitioning')
|
wrapper.classList.remove('listTransitioning')
|
||||||
updateHovering(e)
|
updateHovering(e)
|
||||||
|
@ -458,7 +458,7 @@ function buildObjectsList(filter = null, sort = null) {
|
||||||
|
|
||||||
element.entry = sortedAtlas[i]
|
element.entry = sortedAtlas[i]
|
||||||
|
|
||||||
element.addEventListener("mouseenter", function (e) {
|
element.addEventListener("mouseenter", function () {
|
||||||
if (!fixed && !dragging) {
|
if (!fixed && !dragging) {
|
||||||
objectsContainer.replaceChildren()
|
objectsContainer.replaceChildren()
|
||||||
|
|
||||||
|
@ -840,7 +840,7 @@ function initView() {
|
||||||
renderBackground(atlas)
|
renderBackground(atlas)
|
||||||
render()
|
render()
|
||||||
|
|
||||||
document.addEventListener('timeupdate', (event) => {
|
document.addEventListener('timeupdate', () => {
|
||||||
sortedAtlas = atlas.concat()
|
sortedAtlas = atlas.concat()
|
||||||
resetEntriesList(null, null)
|
resetEntriesList(null, null)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue