here you would instead detach your scroll handler. No need for this boolean.