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
{{ message }}
This repository was archived by the owner on Mar 13, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -173,35 +173,35 @@ The objective of this element is to unify the properties of the `window` and of
173
173
### size
174
174
175
175
```js
176
-
scrollManager.size.x
177
-
scrollManager.size.y
176
+
scrollManager.element.size.x
177
+
scrollManager.element.size.y
178
178
```
179
179
180
180
This is the size of the container, may it be the `window`, or the (div)element used to instantiate the scrollManager
181
181
182
182
### scrollSize
183
183
184
184
```js
185
-
scrollManager.scrollSize.x
186
-
scrollManager.scrollSize.y
185
+
scrollManager.element.scrollSize.x
186
+
scrollManager.element.scrollSize.y
187
187
```
188
188
189
189
This is the scroll size of the container. It determines the amount of scroll that can be done
190
190
191
191
### scrollPosition
192
192
193
193
```js
194
-
scrollManager.scrollPosition.x
195
-
scrollManager.scrollPosition.y
194
+
scrollManager.element.scrollPosition.x
195
+
scrollManager.element.scrollPosition.y
196
196
```
197
197
198
198
This is the position of the scrollBar. Its minimum value it's 0, and its maximum is the `scrollSize` - the `size`
199
199
200
200
### offset
201
201
202
202
```js
203
-
scrollManager.offset.x
204
-
scrollManager.offset.y
203
+
scrollManager.element.offset.x
204
+
scrollManager.element.offset.y
205
205
```
206
206
207
207
This is less likely to be used. It indicates the offset of the _boundingClientRect_ of the container. So for the window as container, it will return 0 for both `x` and `y`. It's the equivalent for `getBoundingClientRect().left` and `top`
0 commit comments