Skip to content

Commit

Permalink
Merge branch 'byonchev-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
leongersen committed Sep 29, 2016
2 parents f2c7114 + c59a4cf commit 7a1704c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/js/structure.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
if ( touch ) {
// noUiSlider supports one movement at a time,
// so we can select the first 'changedTouch'.

// Fix bug when user touches with two or more fingers on mobile devices.
// It's usefull when you have two or more sliders on one page,
// that can be touched simultaneously.
if (event.touches.length > 1) {
return false;
}

x = e.changedTouches[0].pageX;
y = e.changedTouches[0].pageY;
}
Expand Down

0 comments on commit 7a1704c

Please sign in to comment.