diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.ts index 508eefda..fe111db9 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.ts @@ -181,8 +181,6 @@ export class LeftSideComponent implements OnInit, OnDestroy { if (!!this.badgeMessageInterval) { clearInterval(this.badgeMessageInterval); } - - this.logger.debug('-----------------------LeftSideComponent ngOnDestroy'); } @HostListener('mouseenter', ['$event']) @@ -209,24 +207,25 @@ export class LeftSideComponent implements OnInit, OnDestroy { @HostListener('mouseleave', ['$event']) mouseLeave(event: MouseEvent) { - const rect = this.leftSideContainer.nativeElement.getBoundingClientRect(); - - const minX = rect.left; - const maxX = rect.left + rect.width + 5; - const minY = rect.top; - const maxY = rect.top + rect.height; - - if ( - event.pageX >= minX && - event.pageX <= maxX && - event.pageY >= minY && - event.pageY <= maxY - ) { - } else { - this.store.dispatch( - ChatStore.toggleLeftSideDrawerIndicator({ show: false }) - ); - } + // const rect = this.leftSideContainer.nativeElement.getBoundingClientRect(); + // const minX = rect.left; + // const maxX = rect.left + rect.width + 5; + // const minY = rect.top; + // const maxY = rect.top + rect.height; + // if ( + // event.pageX >= minX && + // event.pageX <= maxX && + // event.pageY >= minY && + // event.pageY <= maxY + // ) { + // } else { + // this.store.dispatch( + // ChatStore.toggleLeftSideDrawerIndicator({ show: false }) + // ); + // } + this.store.dispatch( + ChatStore.toggleLeftSideDrawerIndicator({ show: false }) + ); } async onClickNewChat(type: string = 'NORMAL') { diff --git a/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.html b/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.html index 6dddbc2b..843bc514 100644 --- a/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.html +++ b/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.html @@ -12,15 +12,6 @@ >