components icon indicating copy to clipboard operation
components copied to clipboard

Mat-tooltip is not working in mobile with slide toggle and also in div tag

Open nidhi42 opened this issue 7 years ago • 3 comments

Reproduction

reproduce my issue is here: https://stackblitz.com/fork/components-issue

Steps to reproduce:

  1. apply mat-tooltip on your component
  2. 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):

nidhi42 avatar Jul 24 '19 08:07 nidhi42

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.

gabrieltaets avatar Feb 17 '20 17:02 gabrieltaets

Just tried this on my device by going to material.angular.io - the tooltip appeared with a longpress

andrewseguin avatar May 28 '20 19:05 andrewseguin

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.