зеркало из https://github.com/mozilla/brackets.git
Don't close dropdowns on a scroll event in a hidden editor
This commit is contained in:
Родитель
f262bd4381
Коммит
19d6a24af7
|
@ -585,8 +585,12 @@ define(function (require, exports, module) {
|
|||
$(self).triggerHandler("cursorActivity", [self]);
|
||||
});
|
||||
this._codeMirror.setOption("onScroll", function (instance) {
|
||||
// close all dropdowns on scroll
|
||||
Menus.closeAll();
|
||||
// If this editor is visible, close all dropdowns on scroll.
|
||||
// (We don't want to do this if we're just scrolling in a non-visible editor
|
||||
// in response to some document change event.)
|
||||
if (self.isFullyVisible()) {
|
||||
Menus.closeAll();
|
||||
}
|
||||
|
||||
$(self).triggerHandler("scroll", [self]);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче