Make sure the centre of the seedref (pixel to start filling from) is actually visible from the seed (exact point clicked) when filling the grid
This can be seen in the example below: Currently (left) when clicking within the red area a pixel is selected (noted in blue), and the filling process starts from the centre of that pixel. The result is visible on the right.
The problem is that the user has actually clicked within the below general area not the above (which is the one that gets to be filled).
This change first checks if the pixel centre is actually visible from the clicked point and only fills it then
Make sure the centre of the seedref (pixel to start filling from) is actually visible from the seed (exact point clicked) when filling the grid
This can be seen in the example below: Currently (left) when clicking within the red area a pixel is selected (noted in blue), and the filling process starts from the centre of that pixel. The result is visible on the right. The problem is that the user has actually clicked within the below general area not the above (which is the one that gets to be filled). This change first checks if the pixel centre is actually visible from the clicked point and only fills it then