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 {
|
.drag-box {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
||||||
|
&.activating {
|
||||||
|
opacity: .7;
|
||||||
|
}
|
||||||
|
|
||||||
.drag-hover {
|
.drag-hover {
|
||||||
cursor: move;
|
cursor: move;
|
||||||
touch-action: none;
|
touch-action: none;
|
||||||
|
|||||||
@@ -608,6 +608,7 @@ export function makeMovable<T = void>(element: HTMLElement, opts: MovableOptions
|
|||||||
if (box.hasPointerCapture(pointerId)) {
|
if (box.hasPointerCapture(pointerId)) {
|
||||||
box.releasePointerCapture(pointerId);
|
box.releasePointerCapture(pointerId);
|
||||||
}
|
}
|
||||||
|
box.classList.remove('activating');
|
||||||
|
|
||||||
const root = document.documentElement;
|
const root = document.documentElement;
|
||||||
root.classList.remove(opt.rootDragClass);
|
root.classList.remove(opt.rootDragClass);
|
||||||
@@ -663,6 +664,7 @@ export function makeMovable<T = void>(element: HTMLElement, opts: MovableOptions
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
box.classList.add('activating');
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@soft-qr/ui-lib",
|
"name": "@soft-qr/ui-lib",
|
||||||
"version": "1.1.8",
|
"version": "1.1.9",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "https://git.soft.qr/api/packages/soft-qr/npm/"
|
"registry": "https://git.soft.qr/api/packages/soft-qr/npm/"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user