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

Bug report. #166

Closed
josuedavid1997 opened this issue May 3, 2024 · 7 comments
Closed

Bug report. #166

josuedavid1997 opened this issue May 3, 2024 · 7 comments

Comments

@josuedavid1997
Copy link

Hello, thanks for this cool library.
But I found a issue.
the startX, startY position is returning wrong number.
Do you have any idea on this problem?
I look forward to hearing from you,

@scriptex
Copy link
Owner

scriptex commented May 4, 2024

@josuedavid1997 can you please be more specific and explain in a bit more detail what’s wrong? Maybe provide steps to reproduce?

@josuedavid1997
Copy link
Author

When I do swipe action, I need the start and end position (ClientX, clientY)
BUt I found this: ev.detail.coords.startX

You have startX and startY only

@scriptex
Copy link
Owner

scriptex commented May 4, 2024

The coords object should contain startX, endX, moveX, startY, endY and moveY properties. Are you sure that you are unable to see those?
Also, what browser are you using?

@josuedavid1997
Copy link
Author

I can see that startXY, endXY, moveXY. and that's doesn't express the clientX in mobile screen .
chrome browser

@scriptex
Copy link
Owner

scriptex commented May 4, 2024

Well, you can calculate this by adding whatever X/Y you need to the top/left of your swipeable area’s getBoundingClientRect()

@josuedavid1997
Copy link
Author

Thank you

@scriptex
Copy link
Owner

scriptex commented May 6, 2024

Were you able to solve the problem, @josuedavid1997? If yes, please consider closing the issue 😉

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

No branches or pull requests

2 participants