The "glue" function slightly shifts the item to the left and creates a short item on the right side, as if cutting the main item.
I found that this "feature" only appears when in the project settings there is a check mark in the "Project sample rate:" checkbox. If there is no tick, the "glue" function works properly.
On my computer, the bug is easy to reproduce after a clean installation of the portable version