mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 18:07:31 -07:00
finally fix
This commit is contained in:
parent
33f858dc82
commit
f3dc32d352
2 changed files with 7 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "misskey",
|
||||
"version": "12.118.1-calc.10.1",
|
||||
"version": "12.118.1-calc.10.2",
|
||||
"codename": "aqua",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -134,15 +134,14 @@ onMounted(() => {
|
|||
if (!isDesktop.value) {
|
||||
window.addEventListener('resize', () => {
|
||||
if (window.innerWidth >= DESKTOP_THRESHOLD) isDesktop.value = true;
|
||||
let scrollPos = 0;
|
||||
}, { passive: true });
|
||||
|
||||
function checkPosition() {
|
||||
let windowY = window.scrollY;
|
||||
postButton.style.transform = `scale(${windowY < scrollPos ? '1' : '0'})`;
|
||||
scrollPos = windowY;
|
||||
}
|
||||
let scrollPos = 0;
|
||||
|
||||
window.addEventListener('scroll', checkPosition);
|
||||
window.addEventListener('scroll', () => {
|
||||
let windowY = window.scrollY;
|
||||
postButton.style.transform = `scale(${windowY < scrollPos ? '1' : '0'})`;
|
||||
scrollPos = windowY;
|
||||
}, { passive: true });
|
||||
}
|
||||
});
|
||||
|
@ -183,7 +182,6 @@ function top() {
|
|||
|
||||
const wallpaper = localStorage.getItem('wallpaper') != null;
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
Loading…
Reference in a new issue