Declarative Dragging Cuts Complexity from Drag-and-Drop
Drag-and-drop interactions seem simple from a user perspective, but implementing them requires handling complex geometry, visual feedback, and animations—work that discourages many developers from adding these features. Declarative Dragging inverts this problem by letting you simply declare which future application states should be reachable by dragging an element, rather than hand-coding all the interaction mechanics. The system determines the rest.
The approach, implemented in a library called Dragology for web-based SVG interfaces, uses speculative rendering to determine what position a dragged element occupies in each possible target state. Rather than requiring developers to manually choreograph interactions, the system synthesizes smooth drag-and-drop behavior from these model states. The framework is composable, allowing basic behaviors to be combined and enhanced with modifiers for features like snapping and floating.
The work earned a best paper award at UIST 2026 and addresses a significant friction point: many people building educational tools, games, and creative software avoid drag interactions entirely due to implementation complexity. By shifting the burden from imperative interaction code to declarative specification, the approach makes sophisticated tactile interfaces accessible to a broader set of creators.
Read the full article
Continue reading at Hacker News →This is an AI-generated summary. Read the original for the full story.