Skip to content

Commit

Permalink
comment out touch event handlers. They are causing console warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
turner committed Jun 26, 2024
1 parent 250e126 commit 469eb66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions js/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2261,22 +2261,22 @@ class Browser {
this.boundColumnContainerTouchEndHandler = mouseUpOrLeave.bind(this)

this.columnContainer.addEventListener('mousemove', this.boundColumnContainerMouseMoveHandler)
this.columnContainer.addEventListener('touchmove', this.boundColumnContainerTouchMoveHandler)
// this.columnContainer.addEventListener('touchmove', this.boundColumnContainerTouchMoveHandler)

this.columnContainer.addEventListener('mouseleave', this.boundColumnContainerMouseLeaveHandler)

this.columnContainer.addEventListener('mouseup', this.boundColumnContainerMouseUpHandler)
this.columnContainer.addEventListener('touchend', this.boundColumnContainerTouchEndHandler)
// this.columnContainer.addEventListener('touchend', this.boundColumnContainerTouchEndHandler)
}

removeColumnContainerEventHandlers() {
this.columnContainer.removeEventListener('mousemove', this.boundColumnContainerMouseMoveHandler)
this.columnContainer.removeEventListener('touchmove', this.boundColumnContainerTouchMoveHandler)
// this.columnContainer.removeEventListener('touchmove', this.boundColumnContainerTouchMoveHandler)

this.columnContainer.removeEventListener('mouseleave', this.boundColumnContainerMouseLeaveHandler)

this.columnContainer.removeEventListener('mouseup', this.boundColumnContainerMouseUpHandler)
this.columnContainer.removeEventListener('touchend', this.boundColumnContainerTouchEndHandler)
// this.columnContainer.removeEventListener('touchend', this.boundColumnContainerTouchEndHandler)
}

static uncompressSession(url) {
Expand Down
4 changes: 2 additions & 2 deletions js/trackViewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ class TrackViewport extends Viewport {
mouseDownCoords = DOMUtils.pageCoordinates(event)
}
viewport.addEventListener('mousedown', md)
viewport.addEventListener('touchstart', md)
// viewport.addEventListener('touchstart', md)

// Mouse up
const mu = (event) => {
Expand All @@ -633,7 +633,7 @@ class TrackViewport extends Viewport {
}
}
viewport.addEventListener('mouseup', mu)
viewport.addEventListener('touchend', mu)
// viewport.addEventListener('touchend', mu)

// Mouse move
if (typeof this.trackView.track.hoverText === 'function') {
Expand Down

0 comments on commit 469eb66

Please sign in to comment.