From 2e13eed2ef37b135f8cf7b04989aff46bc5510e6 Mon Sep 17 00:00:00 2001 From: Gazook89 Date: Tue, 1 Aug 2023 13:52:44 -0500 Subject: [PATCH] revert moving pointerMove & pointerUp, now on splitPane --- shared/naturalcrit/splitPane/splitPane.jsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/shared/naturalcrit/splitPane/splitPane.jsx b/shared/naturalcrit/splitPane/splitPane.jsx index 4281b0dad..47f8ceafe 100644 --- a/shared/naturalcrit/splitPane/splitPane.jsx +++ b/shared/naturalcrit/splitPane/splitPane.jsx @@ -63,6 +63,7 @@ const SplitPane = createClass({ handleUp : function(e){ e.preventDefault(); + console.log('up'); if(this.state.isDragging){ this.props.onDragFinish(this.state.currentDividerPos); window.localStorage.setItem(this.props.storageKey, this.state.currentDividerPos); @@ -72,6 +73,8 @@ const SplitPane = createClass({ handleDown : function(e){ e.preventDefault(); + + console.log('down'); this.setState({ isDragging: true }); //this.unFocus() }, @@ -79,6 +82,8 @@ const SplitPane = createClass({ handleMove : function(e){ e.preventDefault(); + + console.log('move'); if(!this.state.isDragging) return; const newSize = this.limitPosition(e.pageX); @@ -125,7 +130,7 @@ const SplitPane = createClass({ renderDivider : function(){ return <> {this.renderMoveArrows()} -
+
@@ -136,7 +141,7 @@ const SplitPane = createClass({ }, render : function(){ - return
+ return