diff --git a/lib/ui/css/common.scss b/lib/ui/css/common.scss index ea2c5ed..a3b3a90 100644 --- a/lib/ui/css/common.scss +++ b/lib/ui/css/common.scss @@ -129,6 +129,10 @@ .drag-box { position: absolute; + &.activating { + opacity: .7; + } + .drag-hover { cursor: move; touch-action: none; diff --git a/lib/ui/movable.ts b/lib/ui/movable.ts index 7cf3a2d..a96647f 100644 --- a/lib/ui/movable.ts +++ b/lib/ui/movable.ts @@ -608,6 +608,7 @@ export function makeMovable(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(element: HTMLElement, opts: MovableOptions return; } + box.classList.add('activating'); e.preventDefault(); try { diff --git a/package.json b/package.json index c0026a6..ebca815 100644 --- a/package.json +++ b/package.json @@ -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/" },