@onesy/ui-react 1.0.178 → 1.0.179

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.
@@ -208,7 +208,7 @@ const TableCell = props_ => {
208
208
  }, [sortedBy_]);
209
209
  const onStickyMove = () => {
210
210
  const offsetNew = refs.root.current.offsetLeft;
211
- setStickyActive(refs.offset.current !== offsetNew);
211
+ setStickyActive(offsetNew < refs.offset.current);
212
212
  };
213
213
  const onStickyInit = () => {
214
214
  if (refs.sticky.current && refs.root.current) {
@@ -199,7 +199,7 @@ const TableCell = props_ => {
199
199
  }, [sortedBy_]);
200
200
  const onStickyMove = () => {
201
201
  const offsetNew = refs.root.current.offsetLeft;
202
- setStickyActive(refs.offset.current !== offsetNew);
202
+ setStickyActive(offsetNew < refs.offset.current);
203
203
  };
204
204
  const onStickyInit = () => {
205
205
  if (refs.sticky.current && refs.root.current) {
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.177
1
+ /** @license UiReact v1.0.178
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.177
1
+ /** @license UiReact v1.0.178
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesy/ui-react",
3
- "version": "1.0.178",
3
+ "version": "1.0.179",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-me/onesy.git",
6
6
  "author": "Lazar Erić <lazareric1@proton.me>",