add mock message test
This commit is contained in:
parent
a15a8650de
commit
aa53013cc4
5 changed files with 181 additions and 10 deletions
|
|
@ -55,12 +55,7 @@ export default function useMessageView(): {
|
|||
if (el) {
|
||||
if (shift) {
|
||||
|
||||
console.log(messageOffset.y)
|
||||
if (messageOffset.y < 445 && messageOffset.y < 500) {
|
||||
shiftOffset -= 15;
|
||||
} else {
|
||||
shiftOffset -= el.getBBox().height + messagePadding;
|
||||
}
|
||||
shiftOffset -= el.getBBox().height + messagePadding;
|
||||
}
|
||||
animateMessage(el);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue