feat: support separate header/footer visibility for paginated and scrolled modes (#859)

This commit is contained in:
Huang Xin
2025-04-11 09:40:26 +08:00
committed by GitHub
parent fe25c3e995
commit ccd467ebcf
29 changed files with 264 additions and 147 deletions
@@ -31,7 +31,10 @@ export const useClickEvent = (
if (appService?.isMobile) {
windowStartX = 0;
} else {
const windowPosition = await tauriGetWindowLogicalPosition();
const windowPosition = (await tauriGetWindowLogicalPosition()) as {
x: number;
y: number;
};
windowStartX = windowPosition.x;
}
} else {
@@ -52,6 +55,7 @@ export const useClickEvent = (
} else {
if (hoveredBookKey) {
setHoveredBookKey(null);
return;
}
if (!viewSettings.disableClick! && screenX >= viewCenterX) {
if (viewSettings.swapClickArea) {