0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-01 19:32:42 +00:00

Fix "clicked on the toggle ring" crash with scroll lock.

The code was doing dom-climbing math based on clicking on the div contents but was attached to the div. Moved the onClick to the contents.
This commit is contained in:
David Bolack
2024-09-07 22:36:27 -05:00
parent fa74fb4ada
commit 1e9c7423c7
2 changed files with 3 additions and 3 deletions

View File

@@ -153,9 +153,8 @@ const SplitPane = createClass({
<i className='fas fa-arrow-right' />
</div>
<div id='scrollToggleDiv' className={`arrow lock`}
style={{ left: this.state.currentDividerPos-4 }}
onClick={this.liveScrollToggle} >
<i id='scrollToggle' className={`fas fa-lock`} />
style={{ left: this.state.currentDividerPos-4 }} >
<i id='scrollToggle' className={`fas fa-lock`} onClick={this.liveScrollToggle}/>
</div>
</>;
}