fubi 1.0.0-beta.34 → 1.0.0-beta.35

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.
package/dist/index.es.js CHANGED
@@ -23132,7 +23132,7 @@ function Settings$1($$anchor, $$props) {
23132
23132
  {
23133
23133
  const after = ($$anchor3) => {
23134
23134
  var div = root_2$6();
23135
- div.textContent = `v${"1.0.0-beta.34"}`;
23135
+ div.textContent = `v${"1.0.0-beta.35"}`;
23136
23136
  append($$anchor3, div);
23137
23137
  };
23138
23138
  Navbar(node, {
@@ -23865,11 +23865,8 @@ class Hover extends Module {
23865
23865
  window.addEventListener(
23866
23866
  "scroll",
23867
23867
  () => {
23868
+ this.scroll = { x: window.scrollX, y: window.scrollY };
23868
23869
  if (!this.enabled) return;
23869
- if (this.mode.type === "isolated" || this.mode.type === "replying" || this.mode.type === "focused") {
23870
- this.scroll = { x: window.scrollX, y: window.scrollY };
23871
- return;
23872
- }
23873
23870
  if (this.modules.environment.touch) {
23874
23871
  this.mode = { type: "idle" };
23875
23872
  this.highlightVisible = false;
@@ -23880,7 +23877,6 @@ class Hover extends Module {
23880
23877
  this.highlightVisible = true;
23881
23878
  this.mode = { type: "idle" };
23882
23879
  }
23883
- this.scroll = { x: window.scrollX, y: window.scrollY };
23884
23880
  if (scrollTimeout) clearTimeout(scrollTimeout);
23885
23881
  scrollTimeout = setTimeout(
23886
23882
  () => {
@@ -23937,8 +23933,8 @@ class Hover extends Module {
23937
23933
  this.enabled = false;
23938
23934
  this.modules.dom.removeClass("fubi-hover-enabled");
23939
23935
  this.modules.toolbar.wrapper.classList.remove("fubi-hover-enabled");
23940
- this.highlightVisible = false;
23941
- if (this.mode.type !== "replying") {
23936
+ if (this.mode.type !== "replying" && this.mode.type !== "focused") {
23937
+ this.highlightVisible = false;
23942
23938
  this.mode = { type: "disabled" };
23943
23939
  }
23944
23940
  this.emit("hover:disabled");
@@ -26820,7 +26816,7 @@ const createApp = (params) => {
26820
26816
  var root_1$8 = /* @__PURE__ */ from_html(`<div class="flex w-full items-center gap-6"><div></div> </div>`);
26821
26817
  var root_3$2 = /* @__PURE__ */ from_html(`<p class="whitespace-nowrap"> <span> </span></p>`);
26822
26818
  var root_2$5 = /* @__PURE__ */ from_html(`<details open><summary class="text-amber-500 hover:underline pb-4 mt-8 border-b border-amber-500/30"> </summary> <!></details>`);
26823
- var root$7 = /* @__PURE__ */ from_html(`<div class="hidden fixed z-51 bottom-8 touch:top-8 w-200 touch:bottom-auto max-w-250 left-8 bg-black text-white/50 p-8 font-mono rounded-lg text-[10px]/none flex flex-col space-y-8 divide-white/10 [&amp;_span]:text-white"><div class="text-amber-500 pb-4 mt-8 border-b border-amber-500/30"><p>Modules</p></div> <!> <!></div>`);
26819
+ var root$7 = /* @__PURE__ */ from_html(`<div class=" fixed z-51 bottom-8 touch:top-8 w-200 touch:bottom-auto max-w-250 left-8 bg-black text-white/50 p-8 font-mono rounded-lg text-[10px]/none flex flex-col space-y-8 divide-white/10 [&amp;_span]:text-white"><div class="text-amber-500 pb-4 mt-8 border-b border-amber-500/30"><p>Modules</p></div> <!> <!></div>`);
26824
26820
  function Debug($$anchor, $$props) {
26825
26821
  push($$props, true);
26826
26822
  const {