mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
feat: restore channel-tree member drag and drop
This commit is contained in:
1 parent
3476d4716a
commit
e800d75b7b
16 files changed
+118
-14
No files matched your search
@@ -35,8 +35,8 @@ test("the stable layout registry covers public skin hooks and excludes the admin
|
||||
const isNativeControl = /^<(?:button|a|input|select|textarea)\b/i.test(attributes);
|
||||
const hasButtonRole = /\brole="button"/.test(attributes);
|
||||
const keyboardAction = /@keydown\.(?:enter|space)\b/.test(attributes);
|
||||
const dragAction = /@(?:dragstart|dragover|dragleave|drop)\b|:draggable=/.test(attributes);
|
||||
if (isNativeControl || hasButtonRole || keyboardAction || dragAction) interactiveParts.add(part);
|
||||
// Native HTML drag gestures are desktop-only and do not make a row a 44px touch control.
|
||||
if (isNativeControl || hasButtonRole || keyboardAction) interactiveParts.add(part);
|
||||
}
|
||||
const registered = new Set(SKIN_LAYOUT_COMPONENTS.map((component) => component.selectorPart));
|
||||
for (const part of publicParts) assert.ok(registered.has(part), "Unregistered public layout hook: " + part);
|
||||
|
||||
Reference in new issue
Block a user