codeant-ai-for-open-source[bot] commented on PR #36889:
URL: https://github.com/apache/superset/pull/36889#issuecomment-3846108650
## **Sequence Diagram**
The PR customizes PointerSensor activation so pointer-down on
input/textarea/contentEditable elements does not start a drag; this preserves
the text cursor and allows editing, while non-interactive areas still activate
drag-and-drop reordering.
```mermaid
sequenceDiagram
participant User
participant PointerSensor
participant Browser
participant DndContext
participant TabsRenderer
User->>PointerSensor: pointerDown on tab title
PointerSensor->>PointerSensor: check target is
input/textarea/contentEditable?
alt target is interactive
PointerSensor-->>Browser: do not activate drag (return false)
Browser-->>User: show text cursor, allow editing
else target is non-interactive
PointerSensor->>DndContext: onActivation -> start drag
DndContext->>TabsRenderer: onDragStart (set active tab)
User->>DndContext: drag & drop
DndContext->>TabsRenderer: onDragEnd -> onTabsReorder(oldIndex,
newIndex)
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]