Improve Sticky feature for long sidebar

I was looking for a solution to have a sticky sidebar that would work well when there are many items in the sidebar.

The problem with the traditional method is that when the sidebar or column is taller than the screen size it hides the overflow items.

The right way is to scroll to the end of the long sidebar.
By the way John from fancybricks suggests good way, but as it’s a important feature it’s better to have it in bricks itself