Removes the current instance's ID from the tracking list and destroys the listener if no other IDs exist.
const scrollChecker = createIsPageScrolling();
// Check if page is scrolling
const isPageScrolling = scrollChecker.get(); // => true or false
// Destroy the instance when not needed
scrollChecker.destroy();
Creates an instance to check whether the page is currently scrolling. This function manages the scroll state across multiple instances, ensuring the listener is created only once.