Skip to content

Commit

Permalink
2.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Feb 9, 2019
1 parent 74bfcf4 commit 84d2c9b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## [2.0.6](https://github.com/wessberg/scroll-behavior-polyfill/compare/v2.0.5...v2.0.6) (2019-02-09)

## [2.0.5](https://github.com/wessberg/scroll-behavior-polyfill/compare/v2.0.4...v2.0.5) (2019-02-07)

## [2.0.4](https://github.com/wessberg/scroll-behavior-polyfill/compare/v2.0.3...v2.0.4) (2019-01-24)
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ This polyfill also implements the extensions to the Element interface in the [CS
- [Maintainers](#maintainers)
- [Backers](#backers)
- [Patreon](#patreon)
- [FAQ](#faq)
- [FAQ](#faq)
- [Are there any known quirks?](#are-there-any-known-quirks)
- [License](#license)

Expand Down Expand Up @@ -108,7 +108,7 @@ One way to do so is with an async import:

```typescript
if (!("scrollBehavior" in document.documentElement.style)) {
await import("scroll-behavior-polyfill");
await import("scroll-behavior-polyfill");
}
```

Expand Down Expand Up @@ -137,8 +137,8 @@ This means that either of the following approaches will work:
<div scroll-behavior="smooth"></div>

<script>
// Works jut fine when given as a style property
element.style.scrollBehavior = "smooth";
// Works jut fine when given as a style property
element.style.scrollBehavior = "smooth";
</script>
```

Expand All @@ -153,18 +153,18 @@ For example:
```typescript
// Works for the window object
window.scroll({
behavior: "smooth",
top: 100,
left: 0
behavior: "smooth",
top: 100,
left: 0
});

// Works for any element (and supports all options)
myElement.scrollIntoView();

myElement.scrollBy({
behavior: "smooth",
top: 50,
left: 0
behavior: "smooth",
top: 50,
left: 0
});
```

Expand Down Expand Up @@ -218,7 +218,7 @@ Do you want to contribute? Awesome! Please follow [these recommendations](./CONT

<!-- SHADOW_SECTION_FAQ_START -->

### FAQ
## FAQ

<!-- SHADOW_SECTION_FAQ_END -->

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scroll-behavior-polyfill",
"version": "2.0.5",
"version": "2.0.6",
"description": "A polyfill for the 'scroll-behavior' CSS-property",
"repository": {
"type": "git",
Expand Down

0 comments on commit 84d2c9b

Please sign in to comment.