perf(input): passive event listener for touch start events #25610
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request checklist
Please check if your PR fulfills the following requirements:
ionic-docs
repo, in a separate PR. See the contributing guide for details.npm run build
) was run locally and any changes were pushednpm run lint
) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces:
What is the current behavior?
When using an input with scroll assist or an input with a clear action, there is violations that are logged in the dev console:
Issue URL: #25599
What is the new behavior?
onPointerDown
instead ofonTouchStart
(confirmed this does not regress the existing bug associated with usingonTouchStart
: 4.1.1 - clearInput doesn't clear when circle is clicked #15319)touchstart
Does this introduce a breaking change?
Other information
Dev-build:
6.1.14-dev.11657566839.18ed2481
✅Since the bug associated with this PR does not have functional problems, it is difficult to know the affected changes, if any. I confirmed that the clear action continues to work in browser and on device. I also confirmed the scroll assist does not appear to have regressed. The originally reporter also confirmed the dev-build.