used wrong variable in when getting time for mouseaction.