Mat-tooltip is not working in mobile with slide toggle and also in div tag
Reproduction
reproduce my issue is here: https://stackblitz.com/fork/components-issue
Steps to reproduce:
- apply mat-tooltip on your component
- show in mobile devices
Expected Behavior
tooltip should be display on longpress or touch
Actual Behavior
tooltip is not displayed in mobile device
Environment
Mobile Device/Touch Device
- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):
I have this also. Checking the event listeners, I noticed that on desktop we have mouseouver/mouseout listeners, but on responsive/mobile those aren't registered. Longpress event listener should work but it does not. Manually registering mouseover to the same callback as longpress seemingly solves the issue.
Just tried this on my device by going to material.angular.io - the tooltip appeared with a longpress
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.