yalabot / angular-foundation

http://pineconellc.github.io/angular-foundation/
Other
1.05k stars 267 forks source link

Tooltip styled with position initial will fail on touch devices #252

Open nadersoliman opened 9 years ago

nadersoliman commented 9 years ago

This is a bit complex issue, so I created a plunker to demonstrate it. The main culprit of this behavior is the position: initial applied by me to the tooltip.

The only solution I have found so far, is not to immediately remove the tooltip in removeTooltip function but instead to $timeout the removal after say 10 milliseconds.

http://embed.plnkr.co/0XjQ5dKkJcv5eQXlZAn4/preview

nadersoliman commented 9 years ago

A pull request against my fork is at https://github.com/nadersoliman/angular-foundation/pull/1

If you like the solution I can open a pull request for the main repo