npm run format
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user