Open cgood92 opened 2 years ago
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit 5b31ad44c696592cd0b0a05516e54051596fb116:
Sandbox | Source |
---|---|
react-sortable-hoc-starter | Configuration |
Fix: disabling start for middle mouse button
There are 5 possible values for
event.button
:(Source: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button)
We should not start dragging if either middle or right mouse buttons are clicked
I did not see any unit tests, please let me know if I missed that, as I would be happy to add a unit test.