Toggling a data attribute on drag/drop

This makes sure the math functions for the bucket or the origin only run
the first time the item is moved there.