Deleted remains of the old layer class hook
Re-added didEndDragging hook (see comment for details). Should *not* have the same side effects that were fixed in 1da131a4.