Skip to content

Instantly share code, notes, and snippets.

@trevyn
Created August 30, 2020 10:03
Show Gist options
  • Select an option

  • Save trevyn/487871245b27cf86f6d869e33aa6dd84 to your computer and use it in GitHub Desktop.

Select an option

Save trevyn/487871245b27cf86f6d869e33aa6dd84 to your computer and use it in GitHub Desktop.
`patch-package` file to eliminate `react-beautiful-dnd` drag start delay on iOS
diff --git a/node_modules/react-beautiful-dnd/dist/react-beautiful-dnd.esm.js b/node_modules/react-beautiful-dnd/dist/react-beautiful-dnd.esm.js
index 20c6acf..11de6c0 100644
--- a/node_modules/react-beautiful-dnd/dist/react-beautiful-dnd.esm.js
+++ b/node_modules/react-beautiful-dnd/dist/react-beautiful-dnd.esm.js
@@ -6043,7 +6043,7 @@ function useKeyboardSensor(api) {
var idle$2 = {
type: 'IDLE'
};
-var timeForLongPress = 120;
+var timeForLongPress = 0;
var forcePressThreshold = 0.15;
function getWindowBindings(_ref) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment