mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-02 16:38:38 +00:00
Remove jQuery animations
This commit is contained in:
parent
6165e61048
commit
0da398fd04
2 changed files with 9 additions and 6 deletions
|
@ -22,7 +22,10 @@ function retrievePercent(id, resized) {
|
|||
const scroll = bheight * percent;
|
||||
|
||||
if (!resized) {
|
||||
$('html,body').animate({ scrollTop: scroll }, 'fast');
|
||||
window.scrollTo({
|
||||
top: scroll,
|
||||
behavior: 'smooth',
|
||||
});
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue