Skip to content

Commit

Permalink
fix: touch handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
themustafaomar committed Jan 30, 2022
1 parent 83b7822 commit fc4dbe4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/js/core/bindContainerTouchEvents.js
@@ -1,3 +1,5 @@
import EventHandler from "../eventHandler"

export default function bindContainerTouchEvents() {
let map = this,
touchStartScale,
Expand Down Expand Up @@ -82,5 +84,6 @@ export default function bindContainerTouchEvents() {
lastTouchesLength = touches.length
}

this.container.on('touchstart', handleTouchEvent).on('touchmove', handleTouchEvent)
}
EventHandler.on('touchstart', handleTouchEvent)
EventHandler.on('touchmove', handleTouchEvent)
}

0 comments on commit fc4dbe4

Please sign in to comment.