Hides the tooltip on scroll

This is especially obvious on mobile. The tooltip opens on tap but there
is no way to hide it, so this hides the tooltip after scrolling.
This commit is contained in:
Phil Hughes 2017-03-02 09:59:07 +00:00
parent bb062ebdb6
commit 0385b161de
2 changed files with 8 additions and 0 deletions

View File

@ -236,6 +236,10 @@ require('es6-promise').polyfill();
var bootstrapBreakpoint = bp.getBreakpointSize();
var fitSidebarForSize;
$(document).on('scroll', function() {
$('.has-tooltip').tooltip('hide');
});
// Set the default path for all cookies to GitLab's root directory
Cookies.defaults.path = gon.relative_url_root || '/';

View File

@ -0,0 +1,4 @@
---
title: Fixed tooltip remaining after scrolling the page
merge_request:
author: