On the graph there are several closely spaced points. By hover some points highlighted (it's bug), but infobox correctly showing for one point. Аre there any methods to limit the area of events?
On the graph there are several closely spaced points. By hover some points highlighted (it's bug), but infobox correctly showing for one point. Аre there any methods to limit the area of events?
In JSXGraph, the sensitive area of elements is enhanced by purpose to enable a better handling, especially for lines. For points, the sensitive area is a quadrangle with side length r + 2 pixel, where r is the maximum of the radius of the point (in case of a circle shape) and the attribute JXG.Options.precision.hasPoint. The default value of JXG.Options.precision.hasPoint depends on the pointer device type, i.e. either mouse or touch. It can be controlled by setting to small values
before calling
JXG.JSXGraph.initBoard().If you want to define your own sensitive are, the method
hasPointcan be overwritten. The default method looks like: