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

on mobile can't get more than first touch #109

Closed
jeezs opened this issue Jun 4, 2020 · 1 comment · Fixed by #117
Closed

on mobile can't get more than first touch #109

jeezs opened this issue Jun 4, 2020 · 1 comment · Fixed by #117

Comments

@jeezs
Copy link

jeezs commented Jun 4, 2020

in order to capture more than the first touch, the 'touch def' should accept optional params :

def touch_x(touch_nb = 0)
#@native.originalEvent.touches[#{touch_nb}].pageX
end

def touch_y(touch_nb = 0)
#@native.originalEvent.touches[#{touch_nb}].pageY
end

@elia
Copy link
Member

elia commented Jun 9, 2020

@jeezs the proposed implementation looks good, can you please submit a pull-request with that change?

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 a pull request may close this issue.

2 participants