Returns the index of the section that contains dx.
dx
Sections or hit-targets are calculated differently in some effects
int hitTestDots(double dx, int count, double current);