Skip to content

Commit e850d4f

Browse files
committed
draggable.container.SortZone: IDE related comments reformatting
1 parent 637e137 commit e850d4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/draggable/container/SortZone.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ class SortZone extends DragZone {
277277

278278
/**
279279
* Handles the drag move event. This is the core logic loop for the drag operation.
280-
*
280+
*
281281
* Responsibilities:
282282
* 1. **Window Drag Re-entry:** Checks if a window drag has re-entered the original container boundaries.
283283
* If so, it restores the original layout snapshot (`itemRects`) and shows the placeholder, effectively
@@ -287,7 +287,7 @@ class SortZone extends DragZone {
287287
* 3. **Standard Sorting:** If not in window-drag mode, it calculates the drag delta and swaps items (`switchItems`)
288288
* if the threshold is crossed, updating the `currentIndex`.
289289
* 4. **Auto-Scrolling:** Manages auto-scrolling when dragging near the edges of the container.
290-
*
290+
*
291291
* @param {Object} data - The drag move event data.
292292
*/
293293
async onDragMove(data) {
@@ -423,7 +423,7 @@ class SortZone extends DragZone {
423423

424424
/**
425425
* Initializes the drag operation.
426-
*
426+
*
427427
* Key actions:
428428
* 1. **Identify Drag Target:** Determines which item is being dragged (handling `dragHandleSelector` if present).
429429
* 2. **Snapshot Layout:** Captures the current DOM rectangles (`itemRects`) of all sortable items. This snapshot
@@ -434,7 +434,7 @@ class SortZone extends DragZone {
434434
* 3. **Setup Proxy & Placeholder:** Configures the visual drag proxy and inserts the placeholder into the `sortableItems` list.
435435
* 4. **Apply Absolute Positioning:** Temporarily switches all items to `position: absolute` based on their captured
436436
* coordinates to enable smooth, GPU-accelerated movement during the drag.
437-
*
437+
*
438438
* @param {Object} data - The drag start event data.
439439
*/
440440
async onDragStart(data) {

0 commit comments

Comments
 (0)