Skip to content

Commit

Permalink
fix(interaction): two fingers drag bug (#767)
Browse files Browse the repository at this point in the history
Co-authored-by: Cristiano Coelho <[email protected]>
  • Loading branch information
cristianoccazinsp and cristianocca authored Jun 3, 2020
1 parent fb2e090 commit 97068d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/network/modules/InteractionHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,12 @@ class InteractionHandler {
* @private
*/
onDragStart(event) {
// if already dragging, do not start
// this can happen on touch screens with multiple fingers
if(this.drag.dragging){
return;
}

//in case the touch event was triggered on an external div, do the initial touch now.
if (this.drag.pointer === undefined) {
this.onTouch(event);
Expand Down

0 comments on commit 97068d7

Please sign in to comment.