mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 19:08:26 +00:00
Don't scroll when loading more items
This commit is contained in:
@ -32,20 +32,20 @@ elmApp.ports.setAllProgress.subscribe(function(input) {
|
||||
}, 100);
|
||||
});
|
||||
|
||||
elmApp.ports.scrollToElem.subscribe(function(id) {
|
||||
if (id && id != "") {
|
||||
window.setTimeout(function() {
|
||||
var el = document.getElementById(id);
|
||||
if (el) {
|
||||
if (el["scrollIntoViewIfNeeded"]) {
|
||||
el.scrollIntoViewIfNeeded();
|
||||
} else {
|
||||
el.scrollIntoView();
|
||||
}
|
||||
}
|
||||
}, 20);
|
||||
}
|
||||
});
|
||||
// elmApp.ports.scrollToElem.subscribe(function(id) {
|
||||
// if (id && id != "") {
|
||||
// window.setTimeout(function() {
|
||||
// var el = document.getElementById(id);
|
||||
// if (el) {
|
||||
// if (el["scrollIntoViewIfNeeded"]) {
|
||||
// el.scrollIntoViewIfNeeded();
|
||||
// } else {
|
||||
// el.scrollIntoView();
|
||||
// }
|
||||
// }
|
||||
// }, 20);
|
||||
// }
|
||||
// });
|
||||
|
||||
elmApp.ports.saveUiSettings.subscribe(function(args) {
|
||||
if (Array.isArray(args) && args.length == 2) {
|
||||
|
Reference in New Issue
Block a user