npm run format

This commit is contained in:
2025-11-18 20:12:32 +01:00
parent 404ca9ce88
commit 5c33e77595
6 changed files with 36 additions and 60 deletions

View File

@@ -213,14 +213,7 @@ export function useDragSprite(options: DragSpriteOptions) {
};
const stopDrag = () => {
if (
isDragging.value &&
getAllowCellSwap() &&
activeSpriteId.value &&
activeSpriteCellIndex.value !== null &&
currentHoverCell.value &&
activeSpriteCellIndex.value !== currentHoverCell.value.index
) {
if (isDragging.value && getAllowCellSwap() && activeSpriteId.value && activeSpriteCellIndex.value !== null && currentHoverCell.value && activeSpriteCellIndex.value !== currentHoverCell.value.index) {
if (onUpdateSpriteCell) {
onUpdateSpriteCell(activeSpriteId.value, currentHoverCell.value.index);
}