Fix handling of clicks when scaled