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

Swipe prevents onclick outside element from triggering #1279

Open
keithchew opened this issue Oct 5, 2021 · 0 comments
Open

Swipe prevents onclick outside element from triggering #1279

keithchew opened this issue Oct 5, 2021 · 0 comments

Comments

@keithchew
Copy link

Hi

I have modified tests/manual/input.html to illustrate the issue. Below, I have added a button which alerts "On click" in the onclick event. If we swipe in the hit area and quickly click/tap the button, the onclick is not triggered. Tap events are OK, looks like it is only the swipe action which is causing this behavior.

<div id="hit" class="bg1" style="padding: 30px; height: 200px;">
</div>
<button onclick="alert('On click'); return false;" style="width: 300px;height:200px;">Click Me</button>

Any pointers as to where in the source I can track this down? Ideally, I would like the onclick of the button to trigger regardless of the touch actions that is happening in the hit area.

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

1 participant