Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberDex committed Jul 30, 2024
1 parent 8804bf4 commit 21c2a5c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"lint": "xs lint --max-warnings 0",
"lint:fix": "xs lint --fix",
"prepare": "husky install",
"release": "xs bump,build,docs,publish,git-push",
"release": "npm i && xs bump,build,docs,publish,git-push",
"serve": "xs serve",
"storybook": "storybook dev -p 6006",
"storybook:build": "storybook build --output-dir docs/storybook",
Expand Down
3 changes: 2 additions & 1 deletion src/Input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ export class Input extends Container
{
this._add(key);
}
else if (this.lastInputData && this.lastInputData.length === 1) {
else if (this.lastInputData && this.lastInputData.length === 1)
{
this._add(this.lastInputData);
}
}
Expand Down
10 changes: 6 additions & 4 deletions src/ScrollBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,10 @@ export class ScrollBox extends Container

this.stopRenderHiddenItems();


const newScrollPos = isVertical ? this.scrollY : this.scrollX;

if (newScrollPos !== oldScrollPos) {
if (newScrollPos !== oldScrollPos)
{
this.onScroll?.emit(newScrollPos);
}
}
Expand Down Expand Up @@ -884,11 +884,13 @@ export class ScrollBox extends Container
}
}

get scrollHeight(): number {
get scrollHeight(): number
{
return this.list.height;
}

get scrollWidth(): number {
get scrollWidth(): number
{
return this.list.width;
}
}

0 comments on commit 21c2a5c

Please sign in to comment.