Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !3044

Fix tooltips show/hide delay

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/matheusvilela/tooltip_single_delay into master Apr 12, 2012
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 1

Created by: ghost

This commit fixes two bugs on the tooltip plugin.

On http://jsfiddle.net/ZTYT8/, if the mouse pointer stays on the tooltip elements for less than a second and leave it, the tooltip show function is triggered after one sec, even if the mouse pointer isn't on the element anymore.

Meanwhile, on http://jsfiddle.net/R4wQT/, if the mouse pointer pass over the tooltip elements, leave it, and then come back before 1 sec, the timer used to show the tooltip is not started again.

This patch fixes both issues, using setTimeout and clearTimeout in order to address the problems.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/matheusvilela/tooltip_single_delay