0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

move all pointer events to divider, not splitPane

This commit is contained in:
Gazook89
2023-07-31 22:20:27 -05:00
parent 73e44b8d7a
commit 0bde336226
2 changed files with 3 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ const SplitPane = createClass({
renderDivider : function(){
return <>
{this.renderMoveArrows()}
<div className='divider' onPointerDown={this.handleDown} >
<div className='divider' onPointerDown={this.handleDown} onPointerMove={this.handleMove} onPointerUp={this.handleUp} >
<div className='dots'>
<i className='fas fa-circle' />
<i className='fas fa-circle' />
@@ -136,7 +136,7 @@ const SplitPane = createClass({
},
render : function(){
return <div className='splitPane' onPointerMove={this.handleMove} onPointerUp={this.handleUp}>
return <div className='splitPane'>
<Pane
ref='pane1'
width={this.state.currentDividerPos}

View File

@@ -1,6 +1,5 @@
.splitPane{
touch-action: none;
position : relative;
display : flex;
height : 100%;
@@ -12,6 +11,7 @@
flex : 1;
}
.divider{
touch-action : none;
display : table;
height : 100%;
width : 15px;