Fixes some drag state-related issues.