fix: a click on a panel row does not reach the bar under it
Co-Authored-By: Ovis Fast (Claude) <[email protected]>
This commit is contained in:
1 parent
000df780be
commit
f379b9470c
3 files changed
+41
-5
No files matched your search
+7
-1
@@ -2,7 +2,7 @@ import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
import {
|
||||
DOCK_LIMIT, LABEL_MAX, defaultLabel, normalize, isPinned, pin, unpin, remove, move,
|
||||
rename, toggleMode, dockAction, dockMenu, rowMenu, starMenu, menuTransition, applyDock, add,
|
||||
rename, toggleMode, dockAction, dockMenu, rowMenu, starMenu, menuTransition, applyDock, add, withinGuard,
|
||||
} from "../herdr/herdr-composer/mods/herdr-composer/dock.js";
|
||||
|
||||
const btn = (id, text, extra = {}) => ({ id, label: text, text, mode: "send", ...extra });
|
||||
@@ -170,3 +170,9 @@ test("add: label, mode, empty text, duplicate, limit", () => {
|
||||
assert.equal(add(full, { id: "n", text: "new", label: "", mode: "send" }), full);
|
||||
assert.equal(add([], { id: "1", text: "x", label: "", mode: "bogus" })[0].mode, "send");
|
||||
});
|
||||
|
||||
test("withinGuard: only just after the moment", () => {
|
||||
assert.equal(withinGuard(1100, 1000, 250), true);
|
||||
assert.equal(withinGuard(1250, 1000, 250), false);
|
||||
assert.equal(withinGuard(5000, 0, 250), false);
|
||||
});
|
||||
Reference in new issue
Block a user