You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+33-33Lines changed: 33 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,170 +10,170 @@ and this project adheres to
10
10
11
11
### Added
12
12
13
-
* Support for `behavior`, `block` and `inline` options, from [the spec](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView).
14
-
*`scrollMode: "if-needed" | "always"` to control the `if-needed` behavior, based on [the csswg proposal to the spec](https://github.com/w3c/csswg-drafts/pull/1805).
13
+
- Support for `behavior`, `block` and `inline` options, from [the spec](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView).
14
+
-`scrollMode: "if-needed" | "always"` to control the `if-needed` behavior, based on [the csswg proposal to the spec](https://github.com/w3c/csswg-drafts/pull/1805).
15
15
16
16
### Removed
17
17
18
-
*`centerIfNeeded`, use `scrollMode: "if-needed", block: "center"` instead.
19
-
*`duration` to trigger animation, use [`smooth-scroll-into-view-if-needed`](https://github.com/stipsan/smooth-scroll-into-view-if-needed) instead.
20
-
*`handleScroll(parent, {scrollLeft, scrollTop}, options)`, use `behavior: function(actions)` instead, where `actions` is an array of `{el, top, left}` allowing you to scroll everything in parallel or in a sequence, it's up to you.
21
-
*`offset`, use wrapper elements and CSS like padding or margins instead.
18
+
-`centerIfNeeded`, use `scrollMode: "if-needed", block: "center"` instead.
19
+
-`duration` to trigger animation, use [`smooth-scroll-into-view-if-needed`](https://github.com/stipsan/smooth-scroll-into-view-if-needed) instead.
20
+
-`handleScroll(parent, {scrollLeft, scrollTop}, options)`, use `behavior: function(actions)` instead, where `actions` is an array of `{el, top, left}` allowing you to scroll everything in parallel or in a sequence, it's up to you.
21
+
-`offset`, use wrapper elements and CSS like padding or margins instead.
22
22
23
23
## [1.5.0] - 2018-02-25
24
24
25
25
### Added
26
26
27
-
*`sideEffects: false` in package.json to enable optimizations introduced in webpack v4.
27
+
-`sideEffects: false` in package.json to enable optimizations introduced in webpack v4.
28
28
29
29
## [1.4.0] - 2017-11-17
30
30
31
31
### Added
32
32
33
-
* New `handleScroll` option allows customizing scrolling behavior.
33
+
- New `handleScroll` option allows customizing scrolling behavior.
34
34
35
35
### Changed
36
36
37
-
* Animation logic is separated from scroll calculation logic. This allows skip
37
+
- Animation logic is separated from scroll calculation logic. This allows skip
38
38
importing animation dependencies and reduces bundle sizes when you don't need
39
39
the built in animation feature.
40
40
41
41
## [1.3.0] - 2017-11-12
42
42
43
43
### Added
44
44
45
-
* New API interface (#148@tonybdesign)
45
+
- New API interface (#148@tonybdesign)
46
46
47
47
## [1.2.8] - 2017-11-05
48
48
49
49
### Fixed
50
50
51
-
* Missing TypeScript definitions and rollup/webpack pkg.module files from
51
+
- Missing TypeScript definitions and rollup/webpack pkg.module files from
52
52
published package (#145)
53
53
54
54
## [1.2.7] - 2017-11-05
55
55
56
56
### Fixed
57
57
58
-
* Package published on npm contained unnecessary files bloating the package
58
+
- Package published on npm contained unnecessary files bloating the package
59
59
(#144)
60
60
61
61
## [1.2.6] - 2017-11-05
62
62
63
63
### Fixed
64
64
65
-
* Don't use postinstall as it runs in userland (#143)
65
+
- Don't use postinstall as it runs in userland (#143)
66
66
67
67
## [1.2.5] - 2017-11-05
68
68
69
69
### Fixed
70
70
71
-
* Migrate tests to
71
+
- Migrate tests to
72
72
[new page](https://stipsan.github.io/scroll-into-view-if-needed/) that
73
73
showcases how it works (#141)
74
74
75
75
## [1.2.4] - 2017-11-05
76
76
77
77
### Fixed
78
78
79
-
* TypeScript requires HTMLElement when it should accept Element (#140)
79
+
- TypeScript requires HTMLElement when it should accept Element (#140)
80
80
81
81
## [1.2.3] - 2017-11-04
82
82
83
83
### Fixed
84
84
85
-
* Incorrect TypeScript declarations and export format (#136)
85
+
- Incorrect TypeScript declarations and export format (#136)
86
86
87
87
## [1.2.2] - 2017-10-29
88
88
89
89
### Fixed
90
90
91
-
* Incorrect export declaration in TS typings (#132)
91
+
- Incorrect export declaration in TS typings (#132)
92
92
93
93
## [1.2.1] - 2017-10-02
94
94
95
95
### Fixed
96
96
97
-
* Fifth option should be optional (#129)
97
+
- Fifth option should be optional (#129)
98
98
99
99
## [1.2.0] - 2017-10-01
100
100
101
101
### Added
102
102
103
-
* Set offset feature (#127@iwangulenko)
103
+
- Set offset feature (#127@iwangulenko)
104
104
105
105
## [1.1.1] - 2017-10-01
106
106
107
107
### Fixed
108
108
109
-
* Windows compatibility and CommonJS interop change back to Babel 5
109
+
- Windows compatibility and CommonJS interop change back to Babel 5
110
110
functionality (#121@khell)
111
111
112
112
## [1.1.0] - 2017-03-29
113
113
114
114
### Added
115
115
116
-
* An optional argument finalElement was added to limit the scope of the function
116
+
- An optional argument finalElement was added to limit the scope of the function
117
117
(#108@hemnstill)
118
118
119
119
## [1.0.7] - 2017-03-14
120
120
121
121
### Added
122
122
123
-
* MIT License (#107@JKillian)
123
+
- MIT License (#107@JKillian)
124
124
125
125
### Changed
126
126
127
-
* Reduced size of dist build by switching from rollup to babel (#106@JKillian)
127
+
- Reduced size of dist build by switching from rollup to babel (#106@JKillian)
128
128
129
129
## [1.0.6] - 2016-11-17
130
130
131
131
### Changed
132
132
133
-
* Updated typescript definition making options optional (#75@pelotom)
133
+
- Updated typescript definition making options optional (#75@pelotom)
Copy file name to clipboardExpand all lines: README.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -231,10 +231,10 @@ Type: `Element | Function`
231
231
By default there is no boundary. All the parent elements of your target is checked until it reaches the viewport (`document.documentElement`) when calculating layout and what to scroll.
232
232
You can use this option to do things like:
233
233
234
-
* Prevent the browser window from scrolling.
235
-
* Scroll things into view below the fold without scrolling to it.
236
-
* Scroll elements into view in a list, without scrolling container elements.
237
-
* Prematurely optimizing performance instead of code-splitting your app.
234
+
- Prevent the browser window from scrolling.
235
+
- Scroll things into view below the fold without scrolling to it.
236
+
- Scroll elements into view in a list, without scrolling container elements.
237
+
- Prematurely optimizing performance instead of code-splitting your app.
238
238
239
239
You can also pass a function to do more dynamic checks to override the scroll scoping:
240
240
@@ -418,21 +418,21 @@ This API signature were warned to be dropped in `v2.0.0`, and it was.
*[react-scroll-into-view-if-needed](https://www.npmjs.com/package/react-scroll-into-view-if-needed) – A thin wrapper to scroll your component into view.
423
-
*[Don't be shy, add yours!](https://github.com/stipsan/scroll-into-view-if-needed/edit/master/README.md)
-[react-scroll-into-view-if-needed](https://www.npmjs.com/package/react-scroll-into-view-if-needed) – A thin wrapper to scroll your component into view.
423
+
-[Don't be shy, add yours!](https://github.com/stipsan/scroll-into-view-if-needed/edit/master/README.md)
424
424
425
425
# Who's using this
426
426
427
-
*[zeit.co/docs](https://github.com/zeit/docs) – Documentation of ZEIT Now and other services.
428
-
*[Selenium IDE](https://github.com/SeleniumHQ/selenium-ide) – An integrated development environment for Selenium scripts.
429
-
*[Box UI Elements](https://github.com/box/box-ui-elements) – Box UI Elements are pre-built UI components that allow developers to add elements of the main Box web application into their own applications.
-[zeit.co/docs](https://github.com/zeit/docs) – Documentation of ZEIT Now and other services.
428
+
-[Selenium IDE](https://github.com/SeleniumHQ/selenium-ide) – An integrated development environment for Selenium scripts.
429
+
-[Box UI Elements](https://github.com/box/box-ui-elements) – Box UI Elements are pre-built UI components that allow developers to add elements of the main Box web application into their own applications.
0 commit comments