tool-shack 0.0.19 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,6 @@ import { scrollToPosition } from './scrollToPosition.js';
9
9
  * @returns void
10
10
  */
11
11
  export const scrollToElement = (element, offset = 0, smoothScroll = true) => {
12
- offset = offset ?? window.innerHeight / 6;
13
12
  scrollToPosition(0, getElementOffset(element).top - offset, smoothScroll);
14
13
  };
15
14
  //# sourceMappingURL=scrollToElement.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tool-shack",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "Collection of usefull functions to ease work",
5
5
  "author": {
6
6
  "name": "David Myška",
@@ -14,7 +14,5 @@ export const scrollToElement = (
14
14
  offset: number = 0,
15
15
  smoothScroll: boolean = true,
16
16
  ): void => {
17
- offset = offset ?? window.innerHeight / 6;
18
-
19
17
  scrollToPosition(0, getElementOffset(element).top - offset, smoothScroll);
20
18
  };