Skip to content

Commit

Permalink
✨ Navigation > Touch > Add multi touch support
Browse files Browse the repository at this point in the history
  • Loading branch information
brunosimon committed Sep 6, 2021
1 parent 66a2825 commit 650a32a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Experience/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ export default class Navigation
{
_event.preventDefault()

this.view.drag.alternative = _event.touches.length > 1

this.view.down(_event.touches[0].clientX, _event.touches[0].clientY)

window.addEventListener('touchend', this.view.onTouchEnd)
Expand Down

1 comment on commit 650a32a

@vercel
Copy link

@vercel vercel bot commented on 650a32a Sep 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.