This issue is about refactoring the `stickyScrollWidget.ts` file, to make the code cleaner and better written, but not to change the logic of the code.