From b6e11ba6070f650af50620904beaea09a741ec3e Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Sat, 19 Aug 2023 15:01:16 +1200 Subject: [PATCH] Move e.preventDefault to after isDragging check --- shared/naturalcrit/splitPane/splitPane.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/naturalcrit/splitPane/splitPane.jsx b/shared/naturalcrit/splitPane/splitPane.jsx index c4cd207c2..2101480dc 100644 --- a/shared/naturalcrit/splitPane/splitPane.jsx +++ b/shared/naturalcrit/splitPane/splitPane.jsx @@ -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,