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

RTL Support #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

RTL Support #45

wants to merge 1 commit into from

Conversation

syblock
Copy link

@syblock syblock commented Jan 2, 2024

Summary:
Added support for right-to-left (RTL) languages (e.g., Arabic and Persian) by introducing an rtl prop to the settings.

Changes:

  • add a new boolean prop rtl to the settings.
  • When rtl is set to true, mirrors book and pages using CSS.
  • Adjusts mouse x position in events for RTL support.

Notes:

  • The only issue is that an additional parent element needs to be included within each paper element to mirror it. The paper element already has some styling, and to avoid altering it, I've added styles to mirror page to the inner element.
  • This change does not impact existing functionality for left-to-right languages.
  • Compatible with existing styling and does not introduce breaking changes.

Issues Resolved: #27 #13

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