Commit ccd3699b authored by Fabien Manière's avatar Fabien Manière

better auto scroll (smooth and centered)

parent 8929b728
Pipeline #5845 failed with stage
in 0 seconds
......@@ -55,6 +55,10 @@ export function _keyCode(e) {
}
export function _scrollIntoView(el) {
return el.scrollIntoView();
return el.scrollIntoView({
behavior: 'smooth',
block: 'center',
inline: 'center'
});
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment