From a8db7353b0d677522aafa6ab98e6dceb2be2d45d Mon Sep 17 00:00:00 2001 From: Gazook89 Date: Sun, 30 Jul 2023 20:49:16 -0500 Subject: [PATCH] preventDefaults on pointerEvents to prevent some default behavior. --- shared/naturalcrit/splitPane/splitPane.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shared/naturalcrit/splitPane/splitPane.jsx b/shared/naturalcrit/splitPane/splitPane.jsx index 4ecd3ef2a..df8d940b0 100644 --- a/shared/naturalcrit/splitPane/splitPane.jsx +++ b/shared/naturalcrit/splitPane/splitPane.jsx @@ -61,7 +61,8 @@ const SplitPane = createClass({ return result; }, - handleUp : function(){ + handleUp : function(e){ + e.preventDefault(); if(this.state.isDragging){ this.props.onDragFinish(this.state.currentDividerPos); window.localStorage.setItem(this.props.storageKey, this.state.currentDividerPos); @@ -76,6 +77,8 @@ const SplitPane = createClass({ }, handleMove : function(e){ + + e.preventDefault(); if(!this.state.isDragging) return; const newSize = this.limitPosition(e.pageX);