Autocomplete Scroll Behavior

Is there a way to customize the scroll behavior of autocomplete?

Right now, scrollIntoView has a custom implementation.

I wonder if this can be replaced with the native method

and then its parameters be available as options passed into the autocompletion extension.

Why do you need this?

I styled the autocomplete to have margin around the list items. Normally with browser scrollIntoView, you can align the scroll with scrollMargin so the margin isn’t cutoff.

But with the custom scrollIntoView implementation, it doesn’t account for that. I would also want smoothScrolling as an option.

Frankly, this feels too specific to add a library feature for, I’m sorry.