button in scrollview breaks when it's pressed and moved

Frustratingly now I’ve moved the code out into its own file the bug no longer persists!