Fix issues with detecting when to grab pointer.