Fix for calculating tap offset in an element when detecting tap on scrollbar