Skip to content

Commit 882e757

Browse files
fix(webapp): change toolbar activation height (#1390)
When the in fullscreen mode, the session toolbar was not appearing when the cursor was moved to the top of the screen.
1 parent cf67a05 commit 882e757

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

webapp/src/client/app/shared/components/session-toolbar/session-toolbar.component.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Component, ElementRef, HostListener, Input, Renderer2 } from '@angular/core';
2+
import { WebSession } from '@shared/models/web-session.model';
23
import { UtilsService } from '@shared/services/utils.service';
34

45
@Component({
@@ -79,9 +80,11 @@ export class SessionToolbarComponent {
7980
return;
8081
}
8182

82-
if (event.clientY === 0) {
83+
const TOOLBAR_ACTIVATION_HEIGHT = 10;
84+
85+
if (event.clientY <= TOOLBAR_ACTIVATION_HEIGHT) {
8386
this.showToolbarDiv = true;
84-
} else if (event.clientY > 44) {
87+
} else if (event.clientY > WebSession.TOOLBAR_SIZE) {
8588
this.showToolbarDiv = false;
8689
}
8790
}

0 commit comments

Comments
 (0)