@textbus/xnote 0.0.1-alpha.47 → 0.0.1-alpha.48

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.
@@ -5056,15 +5056,17 @@ function Scroll(props) {
5056
5056
  draft.rightEnd = el.scrollLeft === el.scrollWidth - el.offsetWidth;
5057
5057
  });
5058
5058
  }
5059
- update();
5059
+ setTimeout(update);
5060
5060
  const s = fromEvent(el, 'scroll').subscribe(update);
5061
5061
  return () => s.unsubscribe();
5062
5062
  });
5063
5063
  onUpdated(() => {
5064
5064
  const el = scrollRef.current;
5065
- updateShowShadow(draft => {
5066
- draft.leftEnd = el.scrollLeft === 0;
5067
- draft.rightEnd = el.scrollLeft === el.scrollWidth - el.offsetWidth;
5065
+ setTimeout(() => {
5066
+ updateShowShadow(draft => {
5067
+ draft.leftEnd = el.scrollLeft === 0;
5068
+ draft.rightEnd = el.scrollLeft === el.scrollWidth - el.offsetWidth;
5069
+ });
5068
5070
  });
5069
5071
  });
5070
5072
  return withScopedCSS(scopedId$3, () => {
package/bundles/index.js CHANGED
@@ -5058,15 +5058,17 @@ function Scroll(props) {
5058
5058
  draft.rightEnd = el.scrollLeft === el.scrollWidth - el.offsetWidth;
5059
5059
  });
5060
5060
  }
5061
- update();
5061
+ setTimeout(update);
5062
5062
  const s = core$1.fromEvent(el, 'scroll').subscribe(update);
5063
5063
  return () => s.unsubscribe();
5064
5064
  });
5065
5065
  core.onUpdated(() => {
5066
5066
  const el = scrollRef.current;
5067
- updateShowShadow(draft => {
5068
- draft.leftEnd = el.scrollLeft === 0;
5069
- draft.rightEnd = el.scrollLeft === el.scrollWidth - el.offsetWidth;
5067
+ setTimeout(() => {
5068
+ updateShowShadow(draft => {
5069
+ draft.leftEnd = el.scrollLeft === 0;
5070
+ draft.rightEnd = el.scrollLeft === el.scrollWidth - el.offsetWidth;
5071
+ });
5070
5072
  });
5071
5073
  });
5072
5074
  return scopedCss.withScopedCSS(scopedId$3, () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/xnote",
3
- "version": "0.0.1-alpha.47",
3
+ "version": "0.0.1-alpha.48",
4
4
  "description": "A high-performance rich text editor that supports multiplayer online collaboration.",
5
5
  "main": "./bundles/index.js",
6
6
  "module": "./bundles/index.esm.js",