Declarative Dragging: Turn Possible Future States Into an Interaction
A drag looks simple from the outside: pick something up, move it, put it down. Inside an application, that gesture can become a small interaction engine. The developer must decide what is movable, where it may land, how other objects react while it moves, what the preview should show, and which state to commit when the pointer is released.
Those decisions are often expressed as coordinates and event handlers. A list reorderer calculates insertion slots. A diagram editor measures shapes and hit regions. An algebra tool interprets a gesture as a transformation of an expression. The more interesting the domain, the less useful a generic rectangle called a “drop target” becomes.
Declarative Dragging, a UIST 2026 project by Joshua Horowitz, Andrew Blinn, and Jeffrey Heer, starts from a different question: What valid states could the application have after this drag? Its prototype library, Dragology, turns those states into places the user can drag toward. The result is a way to build tactile SVG interfaces from the same model that already defines what the interface means.
The State Is the Specification
Consider a rack containing three objects. If the middle object may move to the first or last slot, the application already knows the two possible resulting orders. In a conventional implementation, the developer separately calculates the geometry of the two targets and keeps that geometry in sync with the rendered rack. In Dragology, the developer provides the two resulting model states and a render function.
The engine renders each candidate state away from the visible interface. It then finds where the dragged object appears in each rendering. Those positions become candidate destinations. When the user releases the pointer, the selected destination identifies the model state to commit. The program’s own view logic supplies the geometry, so a change in layout can flow through to the interaction without a second hand-maintained map of target rectangles.
This is speculative rendering in a concrete sense. The candidates are possible futures, rendered before any one of them becomes real. The engine uses their visual consequences as interaction data. A model-to-view function, normally used only to show the present, also answers where a meaningful future would appear on screen.
The idea is particularly useful when layout has domain meaning. Moving an algebraic term may stand for a legal rewrite. Dragging a branch in a tree may produce a different structure. The author specifies the legal transformations; the rendered results show the user where those transformations live.
From Destinations to a Continuous Gesture
Finding target positions is only part of a polished drag. The interaction must behave between those positions. Should the object follow the pointer freely? Should it lean toward the nearest valid state? How far can the pointer move before a target stops being active? Should the rest of the diagram preview its future arrangement before release?
The research paper separates these concerns through drag behaviors. A behavior takes a pointer position and produces two things: a preview of what should be visible now and the model state that would be committed if the user released at that point. Because the behavior is evaluated throughout the gesture, the preview and eventual drop decision stay connected.
Behaviors can be combined and modified. The paper gives an example of blocks that snap into special ports when nearby but move freely elsewhere. That interaction combines a snapping behavior with a free-positioning behavior. Other modifiers add effects such as floating, snapping, and animated transitions. These are building blocks for the feel of the gesture; the list of future states still defines what changes are legal.
This distinction matters. A target model state says what action a drag represents. A behavior says how the user experiences it along the way. A developer can tune the second without rewriting the domain rule in pointer-event code.
What the Demos Reveal
The project gallery ranges from algebra and rearranged trees to Bézier curves, card piles, braids, faces, and trominoes. That variety is the point: the approach is not limited to a sortable list. A legal move can be a structural edit whose visual landing place is difficult to calculate directly.
The authors also show parallel representations. Their permutation lab displays the same underlying object in several forms; changing one representation updates the others even during the drag. This is a strong use case for model-driven interaction. The application has one semantic state, while several visual views can respond to a provisional choice. A user can feel the relation between representations before committing it.
The examples also expose the authoring obligation. The library cannot invent the application’s legal transitions. Someone still has to enumerate or generate the reachable states, decide which element in each rendered future corresponds to the dragged element, and make those states unambiguous. Declarative does not mean effort disappears; it means the effort moves from geometry bookkeeping into domain modeling.
How This Differs From Native Drag and Drop
The browser’s HTML Drag and Drop API is built around a dragged item, transfer data, and a drop target. That is useful for files, text, links, and ordinary source-to-target interactions. Developers can customize drag feedback and handle events such as dragstart, dragover, and drop.
Dragology is aimed at a different kind of interface: an SVG scene where the drop destination is a consequence of a possible model transformation. A tree rewrite, for example, may change the layout of much of the scene. The meaningful target is not necessarily a permanent element waiting in the current DOM. It may exist only in a rendered future.
That does not make native drag and drop obsolete. For moving files between applications, the browser’s data-transfer model serves an important role. For a bespoke visual editor or explorable diagram, deriving targets from state can avoid a large amount of special-case geometry. The choice depends on whether the interaction is primarily transferring data or navigating meaningful states inside a graphical model.
What the Study Supports
The researchers interviewed 13 developers who had prior drag-and-drop experience and gave them hands-on tasks with Dragology. Participants reported concise code, polished interactions, and room to experiment. They also struggled with constructing the set of reachable states and reasoning about the abstraction. That finding is useful: it identifies the new hard part rather than presenting a toolkit as a universal shortcut.
The study was qualitative and guided. Participants had one exposure, the researchers were present, and the sample was drawn toward people interested in human-computer interaction and programming languages. It suggests that the approach is promising; it does not establish that every production team will learn it quickly or that it beats established tools across all workloads.
There are technical boundaries too. The paper says the prototype focuses on repositioning a persistent element. Path-dependent drawing gestures and scrubbing can be awkward or impossible to describe this way. Coincident drop positions are ambiguous, and the current implementation throws an error for them. Touch support is limited to one touch at a time. Enumerating many candidate states can also make drag initialization expensive; the paper’s preliminary list benchmark reports over 1.5 seconds at 512 states, while per-frame work stayed below 15 milliseconds.
The Larger Design Idea
The most interesting part of declarative dragging is the reuse of the application’s own knowledge. A view function already knows how a state looks. A transition model already knows which outcomes are valid. By rendering those outcomes ahead of time, Dragology can derive geometry and feedback that developers would otherwise encode again in a separate interaction layer.
That shifts the design conversation. Instead of asking where to draw a drop zone, the author can ask which transformations should feel reachable, how they should preview, and whether the gesture teaches the underlying system. In educational and exploratory software, that may be the difference between a diagram the user can merely inspect and one they can learn by touching.