0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-08 18:38:40 +00:00
Move e.preventDefault to after isDragging check
This commit is contained in:
Trevor Buckner
2023-08-20 23:44:25 -04:00
committed by GitHub
+1 -1
View File
@@ -77,9 +77,9 @@ const SplitPane = createClass({
},
handleMove : function(e){
e.preventDefault();
if(!this.state.isDragging) return;
e.preventDefault();
const newSize = this.limitPosition(e.pageX);
this.setState({
currentDividerPos : newSize,