From 81a59789aebb88d14352e9a9ad82938898cb55e2 Mon Sep 17 00:00:00 2001 From: Steve Randy Tantra Date: Mon, 5 Jun 2017 11:39:39 +0800 Subject: [PATCH] Add checking for pointerdown type --- Sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sortable.js b/Sortable.js index 60c9575..9dccffa 100644 --- a/Sortable.js +++ b/Sortable.js @@ -322,7 +322,7 @@ return; } - if (type === 'mousedown' && evt.button !== 0 || options.disabled) { + if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) { return; // only left button or enabled }