Skip to content

Commit e7528e2

Browse files
yeion7CompuIves
authored andcommitted
fix console height issues (codesandbox#2595)
1 parent 46f9d7c commit e7528e2

File tree

1 file changed

+2
-1
lines changed
  • packages/app/src/app/components/Preview/DevTools

1 file changed

+2
-1
lines changed

packages/app/src/app/components/Preview/DevTools/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,11 @@ export class DevTools extends React.PureComponent<Props, State> {
274274
event: React.MouseEvent & { clientX: number; clientY: number }
275275
) => {
276276
if (!this.state.mouseDown && typeof this.state.height === 'number') {
277+
const { clientY } = event;
277278
unFocus(document, window);
278279
// @ts-ignore
279280
this.setState(state => ({
280-
startY: event.clientY,
281+
startY: clientY,
281282
startHeight: state.height,
282283
mouseDown: true,
283284
}));

0 commit comments

Comments
 (0)