Sidebar and Content scrolls in opposite direction

I tried to make a sticky sidebar.
I used a floating group and made it relative to Top and Bottom and View as 100%.
It worked for a couple of minutes and then started behaving unexpectedly.

The sidebar and the main content move in opposite direction on scrolling.

Please help.