mikaelhg/openblocks — pull request #22 by sworisbreathing (2012-08-01 15:02:59+00:00)
Title: Fix for superfluous runtime exceptions

RenderableBlock has some special state checking when the user releases the mouse, to handle drag-and-drop. If the user right-clicks a block on the canvas to bring up the block's popup menu, then decides he doesn't want to do anything, he might left-click the block again, just to close the popup menu.

When the user does this, the state checking code throws a RuntimeException with a message such as, "dropping without prior dragging?" Under the circumstances described above (which is the only way I've been able to reproduce the issue), we can simply ignore the drop handling code without dumping stack traces to the console.