changed canvas offset style for click checking