Skip to content

Commit

Permalink
remove debug log output
Browse files Browse the repository at this point in the history
  • Loading branch information
bmario committed Oct 2, 2024
1 parent da065c9 commit cb4c9ff
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/interact.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,13 @@ function uiInteractZoomArea (evtObj) {
}

function uiInteractZoomIn (evtObj) {
console.log(evtObj)
evtObj.preventDefault()
const relativeStart = mouseDown.relativeStartPos
const relativeEnd = calculateActualMousePos(evtObj)

relativeEnd[0] = Math.max(window.MetricQWebView.graticule.dimensions.x,
Math.min(Math.abs(relativeEnd[0]), window.MetricQWebView.graticule.dimensions.width))

console.log(relativeStart[0], relativeEnd[0])
if (Math.abs(relativeStart[0] - relativeEnd[0]) > 1) {
let posEnd = window.MetricQWebView.graticule.getTimeValueAtPoint(relativeStart)
let posStart = window.MetricQWebView.graticule.getTimeValueAtPoint(relativeEnd)
Expand Down Expand Up @@ -474,7 +472,6 @@ document.addEventListener('keyup', keyDown.keyUp)

// code for Mac Safari
window.addEventListener('gesturechange', (evt) => {
// console.log(evt)
evt.preventDefault()
const timeRange = window.MetricQWebView.graticule.curTimeRange
const delta = timeRange[1] - timeRange[0]
Expand Down

0 comments on commit cb4c9ff

Please sign in to comment.