Closed DavidStrausz closed 4 years ago
Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue?
npm i @ionic/angular@5.2.0-dev.202005111339.3501979
@liamdebeasi Thank you Liam, works perfectly with the dev-build :)
Thanks for the issue. This has been resolved via https://github.com/ionic-team/ionic/pull/21268, and a fix will be available in an upcoming release of Ionic Framework.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic version: [x] 5.1
Current behavior: No taptic feedback is triggered. When selecting a value with
ion-picker
, during the swipe gesture there should be a "selection" feedback from the taptic engine.I checked and triggering it manually via dev console (
window.TapticEngine.selection()
), which works. The issue seems to be that with Ionics' integrationgestureSelectionStart()
(hapticSelectionStart()
) andgestureSelectionEnd()
(hapticSelectionEnd()
) are never called, which leads togestureSelectionChanged()
(hapticSelectionChanged()
) not being effective.Expected behavior: Taptic feedback works when the corresponding cordova-plugin is installed. See for example the implementation of
ion-reorder-group
where it's working.Steps to reproduce: Use
ion-picker
in a cordova application with thecordova-plugin-taptic-engine
installed which is running on a device which supports taptic feedback.Related code: https://github.com/ionic-team/ionic/blob/1fbdb2255e4ff7fccf22d9ccc12b7f9bb4c3a064/core/src/components/picker-column/picker-column.tsx#L193
https://github.com/ionic-team/ionic/blob/1fbdb2255e4ff7fccf22d9ccc12b7f9bb4c3a064/core/src/utils/haptic.ts#L37
https://github.com/ionic-team/ionic/blob/f0e4215f41fdf6979f28d09531b9e7959a505b83/core/src/components/reorder-group/reorder-group.tsx#L160
Other information: I tested on an iPhone 11 Pro which has a taptic engine built in.
And I also noticed that there are two versions of the haptic util:
core/src/utils/native/haptic.ts
and
core/src/utils/haptic.ts
Ionic info: