Mouse handling update