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

Added tablet support for onDragOverSquare function #129

Merged
merged 5 commits into from
May 19, 2024

Conversation

KeeghanM
Copy link
Contributor

On tablet, the onDragOverSquare function wasn't being called.
I added in an onTouchMove event on the square Div which now calls the onDragOverSquare if the square is different,

This maintains current behaviour of it only being called onEnter.

Copy link

vercel bot commented Mar 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-chessboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 13, 2024 11:11am

@KeeghanM KeeghanM changed the title Tablet drag Added tablet support for onDragOverSquare function Mar 11, 2024
src/chessboard/components/Square.tsx Outdated Show resolved Hide resolved
src/chessboard/context/chessboard-context.tsx Outdated Show resolved Hide resolved
@Clariity Clariity merged commit 4b0ebc3 into Clariity:main May 19, 2024
2 checks passed
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.

None yet

3 participants