Skip to content

fix(material/tooltip): not closing when scrolling away using mouse wheel #19735

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

Merged
merged 1 commit into from
Nov 4, 2020

Conversation

crisbeto
Copy link
Member

We depend on the mouseleave event to close the tooltip, but it won't fire if the user scrolls away without moving their mouse. These changes add some logic so the tooltip is closed if a wheel event resulted in the cursor leaving the trigger.

Fixes #18611.

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release labels Jun 23, 2020
@crisbeto crisbeto requested a review from andrewseguin as a code owner June 23, 2020 20:28
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 23, 2020
@crisbeto crisbeto force-pushed the 18611/tooltip-mouse-wheel branch from 0406af8 to 8243485 Compare June 24, 2020 13:44
@andrewseguin andrewseguin added lgtm action: merge The PR is ready for merge by the caretaker labels Jul 20, 2020
@crisbeto crisbeto force-pushed the 18611/tooltip-mouse-wheel branch from 8243485 to a45e03b Compare July 31, 2020 15:42
@mmalerba mmalerba removed the lgtm label Jul 31, 2020
@crisbeto crisbeto force-pushed the 18611/tooltip-mouse-wheel branch 2 times, most recently from 2ee56c9 to fb59ad3 Compare August 1, 2020 12:12
@crisbeto crisbeto changed the title fix(tooltip): not closing when scrolling away using mouse wheel fix(material/tooltip): not closing when scrolling away using mouse wheel Oct 11, 2020
@crisbeto crisbeto force-pushed the 18611/tooltip-mouse-wheel branch from fb59ad3 to 8b8a0d1 Compare October 11, 2020 18:11
We depend on the `mouseleave` event to close the tooltip, but it won't fire
if the user scrolls away without moving their mouse. These changes add
some logic so the tooltip is closed if a `wheel` event resulted in the cursor
leaving the trigger.

Fixes angular#18611.
@crisbeto crisbeto force-pushed the 18611/tooltip-mouse-wheel branch from 8b8a0d1 to a5ac67d Compare October 11, 2020 18:56
@annieyw annieyw added target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Nov 4, 2020
@annieyw annieyw merged commit 49927ae into angular:master Nov 4, 2020
@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 Dec 5, 2020
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 P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mat-tooltip not hiding on mouse-wheel scroll
5 participants