Skip to content

Commit

Permalink
Remove touchstart event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanTG committed Dec 10, 2024
1 parent 5a84a6a commit 6cad53c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions app/assets/javascripts/application.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,6 @@ function showLocations(ids, lats, lons, num_machines, latLng) {
el.id = 'marker_' + locationID;
el.style.cssText += 'z-index:' + num_machines[i];
el.innerHTML = '<span><b>' + num_machines[i] + '</b></span>';
el.addEventListener('touchstart', function () {
showLocationDetail(locationID);

clearSelectedMarker();
el.className = 'marker2 maplibregl-marker maplibregl-marker-anchor-center';

document.getElementById('location_detail_location_' + locationID).scrollIntoView(true);
window.scrollBy(0, -140);
el.preventDefault();
});
el.addEventListener('click', function () {
showLocationDetail(locationID);

Expand Down

0 comments on commit 6cad53c

Please sign in to comment.