I don't get it? Do you want to ignore "Scroll To" while the sine is moving vertically but not horizontally?
I made the character in my game sway vertically. For this I used the ‘Sine’ behavior. To make the camera follow the character, I use the ‘Scroll To’ behavior. But the camera also followed the vertical movement that ‘Scroll To’ behavior creates. I would like the camera to follow the character, but perhaps not be so fixed.