mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fixed tooltip not hiding when scrolling through graph control (#18314)
This commit is contained in:
@@ -390,9 +390,14 @@ export class QueryPlan2 implements ISashLayoutProvider {
|
|||||||
* use the scroll bars.
|
* use the scroll bars.
|
||||||
*/
|
*/
|
||||||
diagramContainer.addEventListener('wheel', e => {
|
diagramContainer.addEventListener('wheel', e => {
|
||||||
|
this._parent.scrollTop += e.deltaY;
|
||||||
|
//Hiding all tooltips when we scroll.
|
||||||
|
const element = document.getElementsByClassName('mxTooltip');
|
||||||
|
for (let i = 0; i < element.length; i++) {
|
||||||
|
(<HTMLElement>element[i]).style.visibility = 'hidden';
|
||||||
|
}
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
this._parent.scrollTop += e.deltaY;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this._planContainer.appendChild(diagramContainer);
|
this._planContainer.appendChild(diagramContainer);
|
||||||
|
|||||||
Reference in New Issue
Block a user