(Check out my
follow-up tutorial showing how to simulate a drag-and-drop with a fail/reset state)
Recently, I was asked if I could help someone build a Catalyst prototype to help them demonstrate drag-and-drop functionality. The current version of Catalyst does not yet support this as one of the built-in interaction types. But, since my goal is to help my peers get on board with using prototyping tools including Catalyst, I set out to find a way to simulate the nature of drag-and-drop using the tools available in the application.
Ultimately, the simulation had to:
- Allow a piece of artwork to be dragged from one location to another
- Upon release of the artwork, trigger a state that makes it appear as if the artwork has been successfully dropped inside of a zone.
- Allow the artwork to be dragged at an angle (given the setup of my peer’s UI)
After a little investigation, I found that hacking a horizontal slider element would be the best way to achieve these goals. It gives the visual illusion of drag-and-drop, and triggers the “dropped” state upon mouse up of the artwork.
I created this “Trip Packing List” demo to show off the basic idea. Click and drag the bikini artwork from the “Clothing & Accessories” module and release it (while still holding the mouse cursor over the artwork) when it slides over the empty square in the “Packing List” module.
Continue reading →