Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Jun 8, 2016

  • Makes the tooltip more consistent on touch devices by not showing it when the element is tapped.
  • Doesn't bind extra mouse events if the device has a touchscreen, as well not adding touch events on a non-touch device.
  • Adds a constant about whether the device has a touchscreen.
  • Adds a default 75ms delay for touch devices, in order to prevent the tooltip from showing up for a split second when tapping.

Fixes #8642.

* Makes the tooltip more consistent on touch devices by not showing it when the element is tapped.
* Doesn't bind extra mouse events if the device has a touchscreen, as well not adding touch events on a non-touch device.
* Adds a constant about whether the device has a touchscreen.
* Adds a default 75ms delay for touch devices, in order to prevent the tooltip from showing up for a split second when tapping.
* Avoids potentially binding too many events on the parent element.

Fixes angular#8642.
@crisbeto crisbeto force-pushed the 8642/tooltip-repeated-taps branch from 9210103 to d53efb3 Compare June 8, 2016 20:28
@crisbeto crisbeto added needs: review This PR is waiting on review from the team and removed needs: work labels Jun 8, 2016
@ThomasBurleson ThomasBurleson added pr: merge ready This PR is ready for a caretaker to review and removed needs: review This PR is waiting on review from the team labels Jun 8, 2016
crisbeto added a commit to crisbeto/material that referenced this pull request Jun 10, 2016
Reverts most of the changes from angular#8700 and switches to a simpler approach that uses a repeated `touchstart` to hide the tooltip, instead of `touchend`, which fires too early.
Also re-enables mouse events for all kinds of devices, in order to cover cases where the devices has both a touchscreen and a mouse.

Fixes angular#8710.
ThomasBurleson pushed a commit that referenced this pull request Jun 11, 2016
Reverts most of the changes from #8700 and switches to a simpler approach that uses a repeated `touchstart` to hide the tooltip, instead of `touchend`, which fires too early.
Also re-enables mouse events for all kinds of devices, in order to cover cases where the devices has both a touchscreen and a mouse.

Fixes #8710.

Closes #8730
crisbeto added a commit to crisbeto/material that referenced this pull request Jun 12, 2016
This is a follow-up to angular#8700 and angular#8730. It helps with the fact that we can't rely on the focus/blur events in touch devices, in order to hide the tooltip.
crisbeto added a commit to crisbeto/material that referenced this pull request Jun 12, 2016
This is a follow-up to angular#8700 and angular#8730. It helps with the fact that we can't rely on the focus/blur events in touch devices, in order to hide the tooltip.
ThomasBurleson pushed a commit that referenced this pull request Jun 12, 2016
This is a follow-up to #8700 and #8730. It helps with the fact that we can't rely on the focus/blur events in touch devices, in order to hide the tooltip.

Closes #8744
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants