Fix ebook reader header not hiding on mobile tap (#2857)

This commit is contained in:
ACX
2026-02-22 23:13:54 -07:00
committed by GitHub
parent 39f2dc5c83
commit e8b56d9d99
@@ -5,7 +5,7 @@ export interface HeaderFooterVisibilityState {
export class ReaderHeaderFooterVisibilityManager {
private isPinned = false;
private mouseY = 0;
private mouseY: number;
private readonly HEADER_HEIGHT = 20;
private readonly FOOTER_HEIGHT = 40;
@@ -18,6 +18,7 @@ export class ReaderHeaderFooterVisibilityManager {
private onStateChangeCallback?: (state: HeaderFooterVisibilityState) => void;
constructor(private windowHeight: number) {
this.mouseY = windowHeight / 2;
}
onStateChange(callback: (state: HeaderFooterVisibilityState) => void): void {