editor: reduce scroll duration when inserting a new champ
The previous default was 1s, which felt slooooow.
This commit is contained in:
parent
fc8a0d46ff
commit
8a7f4ec769
1 changed files with 3 additions and 1 deletions
|
@ -56,7 +56,9 @@ function addTypeDeChamp(state, typeDeChamps, insertAfter, done) {
|
||||||
state.flash.success();
|
state.flash.success();
|
||||||
done();
|
done();
|
||||||
if (insertAfter) {
|
if (insertAfter) {
|
||||||
scrollToComponent(insertAfter.target.nextElementSibling);
|
scrollToComponent(insertAfter.target.nextElementSibling, {
|
||||||
|
duration: 300
|
||||||
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(message => state.flash.error(message));
|
.catch(message => state.flash.error(message));
|
||||||
|
|
Loading…
Reference in a new issue