Hide alt-key hints for resize and scroll events

This commit is contained in:
JuliaSvinareva 2021-08-13 21:05:41 +03:00
parent 1803cb52a3
commit b0160dc0fe
3 changed files with 4 additions and 1 deletions

View file

@ -357,7 +357,8 @@ Common.UI.HintManager = new(function() {
_lang = mode.lang; _lang = mode.lang;
_getAlphabetLetters(); _getAlphabetLetters();
}, },
'hints:clear': _clearHints 'hints:clear': _clearHints,
'window:resize': _clearHints
}); });
$('#editor_sdk').on('click', function () { $('#editor_sdk').on('click', function () {
_clearHints(); _clearHints();

View file

@ -423,6 +423,7 @@ define([
this.setTabVisible('backward'); this.setTabVisible('backward');
} }
} }
Common.NotificationCenter.trigger('hints:clear');
}, },
onProcessMouse: function(data) { onProcessMouse: function(data) {

View file

@ -316,6 +316,7 @@
var shouldPrevent = false; var shouldPrevent = false;
$this.bind('mousewheel' + eventClassName, function (e, deprecatedDelta, deprecatedDeltaX, deprecatedDeltaY) { $this.bind('mousewheel' + eventClassName, function (e, deprecatedDelta, deprecatedDeltaX, deprecatedDeltaY) {
Common.NotificationCenter.trigger('hints:clear');
var deltaX = e.deltaX * e.deltaFactor || deprecatedDeltaX, var deltaX = e.deltaX * e.deltaFactor || deprecatedDeltaX,
deltaY = e.deltaY * e.deltaFactor || deprecatedDeltaY; deltaY = e.deltaY * e.deltaFactor || deprecatedDeltaY;