Commit 0385b161 authored by Phil Hughes's avatar Phil Hughes

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.
parent bb062ebd
...@@ -236,6 +236,10 @@ require('es6-promise').polyfill(); ...@@ -236,6 +236,10 @@ require('es6-promise').polyfill();
var bootstrapBreakpoint = bp.getBreakpointSize(); var bootstrapBreakpoint = bp.getBreakpointSize();
var fitSidebarForSize; var fitSidebarForSize;
$(document).on('scroll', function() {
$('.has-tooltip').tooltip('hide');
});
// Set the default path for all cookies to GitLab's root directory // Set the default path for all cookies to GitLab's root directory
Cookies.defaults.path = gon.relative_url_root || '/'; Cookies.defaults.path = gon.relative_url_root || '/';
......
---
title: Fixed tooltip remaining after scrolling the page
merge_request:
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment