mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-25 04:33:09 +02:00
commit
8f518eba09
2 changed files with 2 additions and 4 deletions
|
@ -113,8 +113,7 @@ export default Vue.extend({
|
||||||
const current = window.scrollY + window.innerHeight;
|
const current = window.scrollY + window.innerHeight;
|
||||||
if (current > document.body.offsetHeight - 8) this.more();
|
if (current > document.body.offsetHeight - 8) this.more();
|
||||||
}
|
}
|
||||||
if (window.scrollY > 100) this.isTop = false;
|
this.isTop = window.scrollY < 100;
|
||||||
else this.isTop = true;
|
|
||||||
},
|
},
|
||||||
onKeydown(e) {
|
onKeydown(e) {
|
||||||
if (e.target.tagName != 'INPUT' && e.target.tagName != 'TEXTAREA') {
|
if (e.target.tagName != 'INPUT' && e.target.tagName != 'TEXTAREA') {
|
||||||
|
|
|
@ -98,8 +98,7 @@ export default Vue.extend({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onNote(note) {
|
onNote(note) {
|
||||||
if (this.isTop) this.notes.pop();
|
this.isTop = window.scrollY < 100;
|
||||||
this.notes.unshift(note);
|
|
||||||
},
|
},
|
||||||
onChangeFollowing() {
|
onChangeFollowing() {
|
||||||
this.fetch();
|
this.fetch();
|
||||||
|
|
Loading…
Reference in a new issue