opacity while dragging.
This commit is contained in:
1 parent
e0293663d5
commit
f9efaec884
3 files changed
+7
-1
No files matched your search
@@ -129,6 +129,10 @@
|
||||
.drag-box {
|
||||
position: absolute;
|
||||
|
||||
&.activating {
|
||||
opacity: .7;
|
||||
}
|
||||
|
||||
.drag-hover {
|
||||
cursor: move;
|
||||
touch-action: none;
|
||||
|
||||
@@ -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
@@ -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/"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user