Cursor not snapping correctly to the end of tracks

I’m currently using Windows 10 and Audacity version 3.1.3

Whenever you go to the end of a track (with the yellow cursor) it won’t snap correctly to the end of it but some inches away from it to the right. This is subtle but if you zoom in a lot you will see that it does not snap correctly, so this makes it impossible to make loopable tracks that are seamless with the current version of the software.


(Zoom out)
Zoom out.png
(Zoom in)
Zoom in.png
As you can see there’s a small gap between the yellow line and the end of the track.