fixed case where dragging on buttons would cause them to get stuck in focused state.