Add data-spy="scroll" to the element that should be used as the scrollable area (often this is the <body>element).