fubi 1.0.0-beta.34 → 1.0.0-beta.36
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 +5 -8
- package/dist/index.iife.js +1 -1
- package/package.json +1 -1
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.
|
|
23135
|
+
div.textContent = `v${"1.0.0-beta.36"}`;
|
|
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;
|
|
@@ -23878,9 +23875,9 @@ class Hover extends Module {
|
|
|
23878
23875
|
if (!this.isScrolling) {
|
|
23879
23876
|
this.isScrolling = true;
|
|
23880
23877
|
this.highlightVisible = true;
|
|
23878
|
+
if (this.insideFubi) return;
|
|
23881
23879
|
this.mode = { type: "idle" };
|
|
23882
23880
|
}
|
|
23883
|
-
this.scroll = { x: window.scrollX, y: window.scrollY };
|
|
23884
23881
|
if (scrollTimeout) clearTimeout(scrollTimeout);
|
|
23885
23882
|
scrollTimeout = setTimeout(
|
|
23886
23883
|
() => {
|
|
@@ -23937,8 +23934,8 @@ class Hover extends Module {
|
|
|
23937
23934
|
this.enabled = false;
|
|
23938
23935
|
this.modules.dom.removeClass("fubi-hover-enabled");
|
|
23939
23936
|
this.modules.toolbar.wrapper.classList.remove("fubi-hover-enabled");
|
|
23940
|
-
this.
|
|
23941
|
-
|
|
23937
|
+
if (this.mode.type !== "replying" && this.mode.type !== "focused") {
|
|
23938
|
+
this.highlightVisible = false;
|
|
23942
23939
|
this.mode = { type: "disabled" };
|
|
23943
23940
|
}
|
|
23944
23941
|
this.emit("hover:disabled");
|