opacity while dragging.

This commit is contained in:
lchen committed 2026-11-24 13:10:31 +08:00
1 parent e0293663d5
commit f9efaec884
3 files changed
+7 -1

No files matched your search

+2
View File
@@ -608,6 +608,7 @@ export function makeMovable<T = void>(element: HTMLElement, opts: MovableOptions
if (box.hasPointerCapture(pointerId)) {
box.releasePointerCapture(pointerId);
}
box.classList.remove('activating');
const root = document.documentElement;
root.classList.remove(opt.rootDragClass);
@@ -663,6 +664,7 @@ export function makeMovable<T = void>(element: HTMLElement, opts: MovableOptions
return;
}
box.classList.add('activating');
e.preventDefault();
try {