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

fix(tooltip): not showing up on touch devices #12940

Merged
merged 1 commit into from
Sep 11, 2018

Conversation

devversion
Copy link
Member

  • Currently if someone long presses a tooltip trigger on a touch device, the tooltip will not show up. This is because the longpress event does reset immediately and not fire if a slide event is being recognized. The slide event most likely fires most of the time because of a threshold = 0 (for smooth sliding)

Fixes #12917

* Currently if someone long presses a tooltip trigger on a touch device, the tooltip will not show up. This is because the `longpress` event does reset immediately and not fire if a `slide` event is being recognized. The `slide` event most likely fires most of the time because of a `threshold = 0` (for smooth sliding)

Fixes angular#12917
@devversion devversion added P2 The issue is important to a large percentage of users, with a workaround target: patch This PR is targeted for the next patch release labels Sep 1, 2018
@devversion devversion requested a review from jelbourn as a code owner September 1, 2018 15:38
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Sep 1, 2018
devversion added a commit to devversion/material2 that referenced this pull request Sep 1, 2018
* Due to the fact that the sort module uses the `(longpress)` event, the custom HammerJS gesture config needs to be provided.

Related to angular#12940
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Sep 4, 2018
jelbourn pushed a commit that referenced this pull request Sep 6, 2018
* Due to the fact that the sort module uses the `(longpress)` event, the custom HammerJS gesture config needs to be provided.

Related to #12940
@jelbourn jelbourn merged commit 722dfb3 into angular:master Sep 11, 2018
jelbourn pushed a commit that referenced this pull request Sep 11, 2018
* Currently if someone long presses a tooltip trigger on a touch device, the tooltip will not show up. This is because the `longpress` event does reset immediately and not fire if a `slide` event is being recognized. The `slide` event most likely fires most of the time because of a `threshold = 0` (for smooth sliding)

Fixes #12917
mmalerba pushed a commit that referenced this pull request Sep 23, 2018
* Currently if the `MatTooltip` directive is being used without any other modules that set up our "Material" hammer gesture config, the tooltip will use the default `platform-browser` gesture config and **never** fire the `(longpress)` event.

This could have been probably added to #12940, but I figured that out later and should be fine that way too.

Related to #12917
roboshoes pushed a commit to roboshoes/material2 that referenced this pull request Oct 23, 2018
* Currently if the `MatTooltip` directive is being used without any other modules that set up our "Material" hammer gesture config, the tooltip will use the default `platform-browser` gesture config and **never** fire the `(longpress)` event.

This could have been probably added to angular#12940, but I figured that out later and should be fine that way too.

Related to angular#12917
vivian-hu-zz pushed a commit that referenced this pull request Nov 6, 2018
* Due to the fact that the sort module uses the `(longpress)` event, the custom HammerJS gesture config needs to be provided.

Related to #12940
devversion added a commit to devversion/material2 that referenced this pull request Nov 8, 2018
* Due to the fact that the sort module uses the `(longpress)` event, the custom HammerJS gesture config needs to be provided.

Related to angular#12940
devversion added a commit to devversion/material2 that referenced this pull request Nov 10, 2018
* Due to the fact that the sort module uses the `(longpress)` event, the custom HammerJS gesture config needs to be provided.

Related to angular#12940
devversion added a commit to devversion/material2 that referenced this pull request Jun 7, 2019
* Due to the fact that the sort module uses the `(longpress)` event, the custom HammerJS gesture config needs to be provided.

Related to angular#12940
@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 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P2 The issue is important to a large percentage of users, with a workaround target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mattooltip and mobile devices
3 participants