Skip to content

Commit

Permalink
fix cursor discrepancy with docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancahill committed Oct 22, 2018
1 parent 708aeb2 commit 991f479
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -209,7 +209,7 @@ Split(['#one', '#two'], {
#### cursor. Default: `'col-resize'`
Cursor to show on the gutter (also applied to the two adjacent elements when dragging to prevent flickering). Defaults to `'col-resize'`, so should be switched to `'row-resize'` when using `direction: 'vertical'`:
Cursor to show on the gutter (also applied to the body on dragging to prevent flickering). Defaults to `'col-resize'`for `direction: 'horizontal'` and `'row-resize'` for `direction: 'vertical'`:
```js
Split(['#one', '#two'], {
Expand Down
2 changes: 1 addition & 1 deletion src/split.js
Expand Up @@ -164,7 +164,7 @@ const Split = (idsOption, options = {}) => {
const snapOffset = getOption(options, 'snapOffset', 30)
const dragInterval = getOption(options, 'dragInterval', 1)
const direction = getOption(options, 'direction', HORIZONTAL)
const cursor = getOption(options, 'cursor', direction === HORIZONTAL ? 'ew-resize' : 'ns-resize')
const cursor = getOption(options, 'cursor', direction === HORIZONTAL ? 'col-resize' : 'row-resize')
const gutter = getOption(options, 'gutter', defaultGutterFn)
const elementStyle = getOption(options, 'elementStyle', defaultElementStyleFn)
const gutterStyle = getOption(options, 'gutterStyle', defaultGutterStyleFn)
Expand Down

0 comments on commit 991f479

Please sign in to comment.