Skip to content

Commit

Permalink
InvalidPointerId on Android 6
Browse files Browse the repository at this point in the history
  • Loading branch information
durr04 authored and lostip committed Jan 11, 2018
1 parent f904445 commit b68ddb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/jquery.bxslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,7 @@
slider.touch.originalPos = el.position();
var orig = e.originalEvent,
touchPoints = (typeof orig.changedTouches !== 'undefined') ? orig.changedTouches : [orig];
var chromePointerEvents = typeof PointerEvent === 'function'; if (chromePointerEvents) { if (orig.pointerId === undefined) { return; } }
// record the starting touch x, y coordinates
slider.touch.start.x = touchPoints[0].pageX;
slider.touch.start.y = touchPoints[0].pageY;
Expand Down

0 comments on commit b68ddb2

Please sign in to comment.