react-split-pane
react-split-pane copied to clipboard
Fix cursor being out of sync with resize bar after hitting min/max
trafficstars
This was being caused when quickly moving the cursor past the min/max, the new position wasn't being set when hitting the min/max condition.
Example: If minSize = 50, size = 60, sizeDelta = 20 In this can newSize would be 40 so it would hit the minSize condition to change newSize to 50 and then it would skip setting position.
With this change, it will do the same min/max logic but it will also set the position with the 10px movement.
fixes #235