NewsCrawler.org

Declarative Dragging: specifying future states instead of coding drag interactions

The paper 'Declarative Dragging' by Joshua Horowitz, Andrew Blinn and Jeffrey Heer received a Best Paper Award at the 2026 UIST[1] conference. Building a bespoke drag-and-drop interaction normally takes fiddly code to handle geometry, feedback and animations, so many people — educators, game designers, mathematicians and creative tool builders — do not bother. Declarative dragging inverts the problem: instead of programming that visual behavior, the author states, for each draggable element, which future states of the application dragging it should lead to.

The D2 system is model-driven: the author declares which future model states should be reachable by dragging, and the engine builds the interaction through speculative rendering[2] — it renders those states to view trees[3], extracts the position of the dragged element in each rendering, and synthesizes a drag-and-drop interaction without detailed work by the author. D2 is also composable: simple model-driven behaviors combine into more complex ones, and modifiers layer features like floating, snapping and transitions. The system ships as Dragology, a library for SVG[4] interfaces on the web.

The project grew out of Andrew's 2022 prototype of a math game whose menu-based transformations lacked tactility, and out of a 2023 walk in Seattle where he shared the idea with Josh; Josh picked it up while trying to pull around order-preserving maps between trees, which became the twisted trees demo. Since the paper, the authors have used Dragology for new mathematical explorables and for interfaces combining parallel representations, such as a permutation lab where interacting with any one representation updates the others in real time, even halfway through a drag. Andrew is bringing declarative dragging to existing applications, including his research on user interfaces for programming languages, and has restarted work on the original math game.

Read the original declarative-dragging.github.ioDiscussion

Sources

Published: First seen: Читать по-русски

Open as a page