Optionally you may configure a buffer that surrounds the selection line to select features of your target layer(s).

Select line buffer configuration - WebOffice category
The buffer distance is configured in geodata units (units of the coordinate system of the map service).