Created
August 30, 2020 10:03
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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