Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update htmlv2.pug - Fixed Top and Bottom Controllers not Activating, Added Per-Story ScrollSave Support, Fixed irresponsive layouts in Mobile view. #9

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sipsuru
Copy link
Contributor

@sipsuru sipsuru commented Dec 15, 2024

Updated how top and bottom controllers activate and deactivate in html.
Use event.composedPath() instead of event.path.find(), which didn't work.


Added word wrapping to part in css to avoid irresponsive layouts in Mobile view.


Add per-story scrollsave support.

Browsers treat file:// (desktop) and content:// (android) urls as from the same origin regadless the directory they're in. So if we have multiple stories downloaded, the scrollsave value is shared among them.

By adding book id to the localStorage key, we can assure that scrollsave is specific to each story.

Updated how top and bottom controllers activate and deactivate in html.

Use event.composedPath() instead of event.path.find(), which didn't work.
Fixed template errors.
Add per-story scrollsave support.

Browsers treat file:// (desktop) and content:// (android) urls as from the same origin regadless the directory they're in. So if we have multiple stories downloaded, the scrollsave value is shared among them.

By adding book id to the localStorage key, we can assure that scrollsave is specific to each story.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant