Snapping doesn't work for a third clip moved across tracks

This bug only happens when three clips are moved diagonally one by one without any space between them.
If I move three clips straight up, snapping works. If I leave a blank between the first and second clips, snapping works.

I made the following change to Shotcut\share\shotcut\qml\views\timeline\Track.js
and the problem seems to have gone away.

Line Before After
32 clip.trackIndex === repeater.itemAt(i).trackIndex clip.originalTrackIndex === repeater.itemAt(i).originalTrackIndex

I have made a pull request for this here:

Tested on Windows.
Tested on v21.10.31, but it’s been a problem for a while on prior releases.

This fix is merged for the next release 21.12