Port ignoreScrollBehavior from #388 to the new API