mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
We put this in `scroll_util` to make it more likely we will eventually unify this with other scrolling logic. (A big piece to move is ui.get_scroll_element, but that's for another PR.) And then the other tactical advantage is that we get 100% line coverage on it. I changed the warning to an error, since I don't think we ever expect scrolling at the `body` level, and I don't bother with the preview node.
2.1 KiB
2.1 KiB