diff --git a/frontend/src/Editor/Editor.jsx b/frontend/src/Editor/Editor.jsx index 4a5917303d..55b5c81407 100644 --- a/frontend/src/Editor/Editor.jsx +++ b/frontend/src/Editor/Editor.jsx @@ -149,9 +149,10 @@ class Editor extends React.Component { }; onMouseDown = () => { - this.setState({ - isQueryPaneDragging: true, - }); + this.state.isTopOfQueryPane && + this.setState({ + isQueryPaneDragging: true, + }); }; onMouseUp = () => { @@ -982,7 +983,6 @@ class Editor extends React.Component { height: `calc(100% - ${this.state.queryPaneHeight}%)`, width: !showLeftSidebar ? '85%' : '', left: !showLeftSidebar ? '0' : '', - // transition: 'height 0.3s ease-in-out', cursor: this.state.isQueryPaneDragging || this.state.isTopOfQueryPane ? 'row-resize' : 'default', }} >