mirror of
https://github.com/placeAtlas/atlas.git
synced 2025-01-14 20:47:06 +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("zoomInButton").addEventListener("click", function (e) {
|
||||
document.getElementById("zoomInButton").addEventListener("click", function () {
|
||||
|
||||
/*if(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){
|
||||
window.cancelAnimationFrame(zoomAnimationFrame)
|
||||
|
@ -242,7 +242,7 @@ async function init() {
|
|||
applyZoom(x, y, zoom)
|
||||
})
|
||||
|
||||
document.getElementById("zoomResetButton").addEventListener("click", function (e) {
|
||||
document.getElementById("zoomResetButton").addEventListener("click", function () {
|
||||
zoom = 1
|
||||
zoomOrigin = [0, 0]
|
||||
scaleZoomOrigin = [0, 0]
|
||||
|
|
|
@ -114,13 +114,13 @@ offcanvasDraw.addEventListener('hidden.bs.offcanvas', function () {
|
|||
applyView()
|
||||
})
|
||||
|
||||
offcanvasList.addEventListener('show.bs.offcanvas', function (e) {
|
||||
offcanvasList.addEventListener('show.bs.offcanvas', function () {
|
||||
wrapper.classList.remove('listHidden')
|
||||
wrapper.classList.add('listTransitioning')
|
||||
applyView()
|
||||
})
|
||||
|
||||
offcanvasList.addEventListener('shown.bs.offcanvas', function (e) {
|
||||
offcanvasList.addEventListener('shown.bs.offcanvas', function () {
|
||||
entriesListShown = true
|
||||
wrapper.classList.remove('listTransitioning')
|
||||
updateHovering(e)
|
||||
|
@ -458,7 +458,7 @@ function buildObjectsList(filter = null, sort = null) {
|
|||
|
||||
element.entry = sortedAtlas[i]
|
||||
|
||||
element.addEventListener("mouseenter", function (e) {
|
||||
element.addEventListener("mouseenter", function () {
|
||||
if (!fixed && !dragging) {
|
||||
objectsContainer.replaceChildren()
|
||||
|
||||
|
@ -840,7 +840,7 @@ function initView() {
|
|||
renderBackground(atlas)
|
||||
render()
|
||||
|
||||
document.addEventListener('timeupdate', (event) => {
|
||||
document.addEventListener('timeupdate', () => {
|
||||
sortedAtlas = atlas.concat()
|
||||
resetEntriesList(null, null)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue