mirror of
https://github.com/cloudmaker97/DurstRechner.git
synced 2025-12-05 23:48:39 +00:00
WIP: Verhindern von Page-Refreshes auf mobilen Endgeräten
This commit is contained in:
parent
05de62c87a
commit
deef49a560
1 changed files with 8 additions and 1 deletions
|
|
@ -744,4 +744,11 @@ Element.getFileImportButton().addEventListener('click', () => {
|
|||
};
|
||||
reader.readAsText(fileContent);
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
document.addEventListener('touchstart', function (e) {
|
||||
if (window.scrollY === 0) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue