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

+4
View File
@@ -129,6 +129,10 @@
.drag-box {
position: absolute;
&.activating {
opacity: .7;
}
.drag-hover {
cursor: move;
touch-action: none;
+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 {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@soft-qr/ui-lib",
"version": "1.1.8",
"version": "1.1.9",
"publishConfig": {
"registry": "https://git.soft.qr/api/packages/soft-qr/npm/"
},