finally fix
This commit is contained in:
parent
532c0187f6
commit
1c02c1097d
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"version": "12.118.1-calc.10.1",
|
"version": "12.118.1-calc.10.2",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -134,15 +134,14 @@ onMounted(() => {
|
||||||
if (!isDesktop.value) {
|
if (!isDesktop.value) {
|
||||||
window.addEventListener('resize', () => {
|
window.addEventListener('resize', () => {
|
||||||
if (window.innerWidth >= DESKTOP_THRESHOLD) isDesktop.value = true;
|
if (window.innerWidth >= DESKTOP_THRESHOLD) isDesktop.value = true;
|
||||||
|
}, { passive: true });
|
||||||
|
|
||||||
let scrollPos = 0;
|
let scrollPos = 0;
|
||||||
|
|
||||||
function checkPosition() {
|
window.addEventListener('scroll', () => {
|
||||||
let windowY = window.scrollY;
|
let windowY = window.scrollY;
|
||||||
postButton.style.transform = `scale(${windowY < scrollPos ? '1' : '0'})`;
|
postButton.style.transform = `scale(${windowY < scrollPos ? '1' : '0'})`;
|
||||||
scrollPos = windowY;
|
scrollPos = windowY;
|
||||||
}
|
|
||||||
|
|
||||||
window.addEventListener('scroll', checkPosition);
|
|
||||||
}, { passive: true });
|
}, { passive: true });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -183,7 +182,6 @@ function top() {
|
||||||
|
|
||||||
const wallpaper = localStorage.getItem('wallpaper') != null;
|
const wallpaper = localStorage.getItem('wallpaper') != null;
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
Loading…
Reference in New Issue