Skip to content

Commit

Permalink
refactor(app/ResizablePanel): decrease throttle interval when running
Browse files Browse the repository at this point in the history
  • Loading branch information
exuanbo committed Dec 19, 2023
1 parent 291297a commit 243ed9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/ResizablePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useSelector } from './store'

const ResizablePanel: typeof BaseResizablePanel = (props) => {
const isRunning = useSelector(selectIsRunning)
const throttleMs = DEFAULT_RESIZE_THROTTLE_MS * (isRunning ? 5 : 1)
const throttleMs = DEFAULT_RESIZE_THROTTLE_MS * (isRunning ? 2 : 1)
return <BaseResizablePanel throttle={throttleMs} {...props} />
}

Expand Down

0 comments on commit 243ed9b

Please sign in to comment.