Clamp ebook gap value on load to fix blank pages for v1 upgraders (#2957)
This commit is contained in:
@@ -122,7 +122,7 @@ export class ReaderStateService {
|
||||
newState.fontFamily = `custom:${(settings as any).customFontId}`;
|
||||
}
|
||||
|
||||
if (settings.gap != null) newState.gap = settings.gap;
|
||||
if (settings.gap != null) newState.gap = Math.min(settings.gap, 0.5);
|
||||
if (settings.hyphenate != null) newState.hyphenate = settings.hyphenate;
|
||||
if (settings.justify != null) newState.justify = settings.justify;
|
||||
if (settings.maxColumnCount != null) newState.maxColumnCount = settings.maxColumnCount;
|
||||
|
||||
Reference in New Issue
Block a user