Browse Source

Pull request #2468: REPORT-65865 缩短延迟

Merge in VISUAL/fineui from ~TELLER/fineui:master to master

* commit '1a1378467bc045a3faea608110770d57fd088e12':
  REPORT-65865 fix: 缩短延迟
  auto upgrade version to 2.0.20220207141231
es6
Teller 3 years ago
parent
commit
1bbddf9353
  1. 4
      src/base/single/input/input.js

4
src/base/single/input/input.js

@ -24,7 +24,7 @@ BI.Input = BI.inherit(BI.Single, {
var _keydown = BI.debounce(function (keyCode) { var _keydown = BI.debounce(function (keyCode) {
self.onKeyDown(keyCode, ctrlKey); self.onKeyDown(keyCode, ctrlKey);
self._keydown_ = false; self._keydown_ = false;
}, 300); }, BI.EVENT_RESPONSE_TIME);
var _clk = BI.debounce(BI.bind(this._click, this), BI.EVENT_RESPONSE_TIME, { var _clk = BI.debounce(BI.bind(this._click, this), BI.EVENT_RESPONSE_TIME, {
"leading": true, "leading": true,
"trailing": false "trailing": false
@ -96,7 +96,7 @@ BI.Input = BI.inherit(BI.Single, {
_blur: function () { _blur: function () {
var self = this; var self = this;
if (self._keydown_ === true) { if (self._keydown_ === true) {
BI.delay(blur, 300); BI.delay(blur, BI.EVENT_RESPONSE_TIME);
} else { } else {
blur(); blur();
} }

Loading…
Cancel
Save