From 1d2beb514713f49840491bc94f42f07f8623b89e Mon Sep 17 00:00:00 2001 From: Sapphire <582087790@qq.com> Date: Thu, 21 Jun 2018 14:36:29 +0800 Subject: [PATCH] Update Sortable.js --- Sortable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sortable.js b/Sortable.js index 8b32dfb..802ab38 100644 --- a/Sortable.js +++ b/Sortable.js @@ -495,7 +495,8 @@ }, _triggerDragStart: function (/** Event */evt, /** Touch */touch) { - touch = touch || (evt.pointerType == 'touch' ? evt : null); + var touchType = evt && (evt.pointerType == 'touch' || evt.type == 'pointerDown' || evt.type == 'pointerdown') + touch = touch || (touchType ? evt : null); if (touch) { // Touch device support