Skip to content

Commit

Permalink
small stuff (I know my git commit messages suck, but who cares :D)
Browse files Browse the repository at this point in the history
  • Loading branch information
berndartmueller committed Aug 28, 2020
1 parent 9a6657f commit dbeb942
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@

<br />

## Why Virchual?
## Highlights

- Lightweight. Only **<2.8kB** (gzipped).
- **Virtual slides** to keep DOM elements at a minimum (Lighthouse ❤️ it)
- Instagram like **pagination bullets**.
- **0 dependencies**. Everything included.

<br />
- **Written in TypeScript**.

<!-- TABLE OF CONTENTS -->

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"pre-commit": "npm run lint-staged && npm run typecheck"
}
},
"sideEffects": false,
"repository": {
"type": "git",
"url": "git+https://github.com/berndartmueller/virchual.git"
Expand Down
2 changes: 2 additions & 0 deletions src/virchual.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ export class Virchual {
}

private onPaginationButtonClick(event: MouseEvent) {
stop(event);

const button: HTMLButtonElement = (event.target as Element).closest('button') as HTMLButtonElement;
const control = button.dataset.controls as 'prev' | 'next';

Expand Down

0 comments on commit dbeb942

Please sign in to comment.