From cd5e21861cbfe1ef4b891af2c63762c838be20f7 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Wed, 9 Aug 2023 09:43:47 +0200 Subject: [PATCH] Update frame.component.ts fix isDesktop logic --- src/frontend/app/ui/frame/frame.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/app/ui/frame/frame.component.ts b/src/frontend/app/ui/frame/frame.component.ts index a8f61932..396c9596 100644 --- a/src/frontend/app/ui/frame/frame.component.ts +++ b/src/frontend/app/ui/frame/frame.component.ts @@ -60,7 +60,7 @@ export class FrameComponent { public themeService: ThemeService, private deviceService: DeviceDetectorService ) { - this.enableScrollUpButton = Config.Gallery.NavBar.showScrollUpButton === ScrollUpModes.always || (Config.Gallery.NavBar.showScrollUpButton === ScrollUpModes.mobileOnly && this.deviceService.isDesktop()); + this.enableScrollUpButton = Config.Gallery.NavBar.showScrollUpButton === ScrollUpModes.always || (Config.Gallery.NavBar.showScrollUpButton === ScrollUpModes.mobileOnly && !this.deviceService.isDesktop()); this.user = this.authService.user; }