We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ba038c1 + 5b55f64 commit fcef772Copy full SHA for fcef772
lib/draggable.js
@@ -89,7 +89,7 @@ var dragEventFor = (function () {
89
* get {clientX, clientY} positions of control
90
* */
91
function getControlPosition(e) {
92
- var position = !isTouchDevice ? e : e.touches[0];
+ var position = (e.touches && e.touches[0]) || e;
93
return {
94
clientX: position.clientX,
95
clientY: position.clientY
0 commit comments