ionic-framework
ionic-framework copied to clipboard
bug: disable datetime haptics on android
Prerequisites
- [X] I have read the Contributing Guidelines.
- [X] I agree to follow the Code of Conduct.
- [X] I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
- [ ] v4.x
- [ ] v5.x
- [X] v6.x
- [ ] Nightly
Current Behavior
Creating an <ion-datetime>
for time is spamming vibrations when scrolling (on mobile).
This is dreadful.
I've read #23584, #16630, forum#217901, forum#203783/13.
None of these are offering a viable solution to the problem, or are too old whereof about an older version.
Expected Behavior
Have (at least) an option to tell if vibrations are desired or not ?
Steps to Reproduce
<ion-datetime presentation="time"></ion-datetime>
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 6.19.0 (C:\Users\user\AppData\Roaming\npm\node_modules@ionic\cli) Ionic Framework : @ionic/angular 6.0.13 @angular-devkit/build-angular : 13.2.6 @angular-devkit/schematics : 13.2.6 @angular/cli : 13.2.6 @ionic/angular-toolkit : 6.1.0
Capacitor:
Capacitor CLI : 3.4.3 @capacitor/android : 3.4.3 @capacitor/core : 3.4.3 @capacitor/ios : 3.4.3
Utility:
cordova-res : not installed globally native-run : 1.5.0
System:
NodeJS : v16.14.2 (C:\Program Files\nodejs\node.exe) npm : 8.12.2 OS : Windows 10
Additional Information
No response
Thanks for the issue. Is this happening on iOS or Android?
I can't test for iOS for now, so I've only tested for Android.
Thanks. The haptics are supposed to be there on iOS as that is what the native date picker component does. Can you please clarify what the expected behavior is on Android?
I'm just scrolling over the numbers to select hour and minutes. Each time it passes to a next or previous slot, it's vibrating. So scrolling fast is vibrating a lot. The expected behavior would be that there's no vibration at all (or in an option though).
Thanks. The haptics are supposed to be there on iOS as that is what the native date picker component does. Can you please clarify what the expected behavior is on Android?
I have the same issue on Android. and also after time scroll and close it the month will jump to previous month.
I think it makes sense to disable the haptics for the wheel picker on Android for now.
The haptics are supposed to be there on iOS
No doubt haptics on iOS/iPhones are a lot more subtle. 😁
Thanks for the issue. This has been resolved via https://github.com/ionic-team/ionic-framework/pull/26370, and a fix will be available in an upcoming major release of Ionic Framework. We will have a public beta period for the next major release in the future where developers can test and provide feedback.
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.