Fix issue where onExit was being triggered when completing a drag.