* Use max_distance for fitting screws to buttons
The max distance is at most 1/3 of the diagonal,
depending on how many screws are there in horizontal or
vertical orientation.
This is a safe guard to prevent assigning screws to buttons
that would confuse the users, for very skewed screw configs.
use a smaller button scale fixes#891
Co-authored-by: alfrix <alfredomonclus@gmail.com>
Co-authored-by: czaky <jendrzej.w@lczak.net>