Skip to content

Conversation

@SamuelHerrera
Copy link

  • Updated the API reference to allow document to accept both Document and ShadowRoot.
  • Added notes on handling events and element creation in shadow contexts.

Note: Some of the changes where LLM generated, but I manually edited and tested it.

image

Jesus Samuel Herrera Fuente added 2 commits July 27, 2025 14:59
- Updated the API reference to allow `document` to accept both `Document` and `ShadowRoot`.
- Added notes on handling events and element creation in shadow contexts.
@SamuelHerrera SamuelHerrera deleted the shadow-root-support branch July 27, 2025 21:50
@SamuelHerrera SamuelHerrera restored the shadow-root-support branch July 27, 2025 21:52
@SamuelHerrera SamuelHerrera reopened this Jul 27, 2025
Jesus Samuel Herrera Fuente added 3 commits July 28, 2025 09:58
- Enhanced event binding and unbinding for mouse and touch events to ensure proper functionality in both shadow roots and main documents.
- Simplified access to the document object in the _delayedTapMove method.
- Added a new demo for shadow DOM with transformed elements to showcase improved functionality.
- Updated the SelectionArea class to automatically adjust defaults for shadow DOM contexts, including handling transformed elements and event binding to shadow hosts.
- Revised documentation to clarify shadow DOM usage and automatic adjustments in the quickstart guide.docs/demos
…tionArea

- Updated the logic in the intersects function to use a result variable for clarity.
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