Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HammerJS ToolTip issues #5758

Closed
toonvanstrijp opened this issue Jul 14, 2017 · 5 comments
Closed

HammerJS ToolTip issues #5758

toonvanstrijp opened this issue Jul 14, 2017 · 5 comments

Comments

@toonvanstrijp
Copy link

toonvanstrijp commented Jul 14, 2017

Bug, feature request, or proposal:

Bug

What is the expected behavior?

HammerJS adding styles to tooltip:
style="touch-action: none; user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"

What is the current behavior?

The elements where I add mdTooltip="test", don't get the HammerJS Styling

What are the steps to reproduce?

Can't reproduce it in plunkr since im not using SystemJS

@donroyco
Copy link
Contributor

donroyco commented Jul 14, 2017

Please follow the issue template and/or better avenues for troubleshooting / questions are Stack Overflow, gitter, mailing list, etc.

@toonvanstrijp
Copy link
Author

@donroyco I discovered the bug. It's a really strange bug in material2. When I put MdSliderModule in imports then all the elements that have mdTooltip are getting the HammerJs Styling: style="touch-action: none; user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);". Can you maybe give me an explanation why this is necessary to work?

@andrewseguin
Copy link
Contributor

Can you re-open with a plunker showing a reproduction of what the issue is?

@toonvanstrijp
Copy link
Author

Without hammerJS styling
http://plnkr.co/edit/IUb3IZVDMiDhcnVhQKZA?p=preview

With hammerJS styling
http://plnkr.co/edit/6Nhbz64S1pHG6c6Vvkjo?p=preview

Above two plunkers with an example, the first plunker is without the hammerJS styling, inside the main.ts file I removed the MatSliderModule. (When this module is included it causes to get HammerJS activated sort of... )

The second plunker I added the MatSliderModule again and if you go to inspect element en target the button It will have the hammerJS styling.

Hopefully you understand my problem now? It's not blocking at al or anything but I was just surprised why it works this way.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants