When scrolling the doc with the up/down arrows, switch to dynamic bucket mode. Fixes #697.