Browse Source

CHART-12259 fix: 单值系滑块滑动放开鼠标会发两次change事件

es6
windy 5 years ago
parent
commit
d4ab918acf
  1. 3
      changelog.md
  2. 1
      src/widget/singleslider/singleslider.js
  3. 1
      src/widget/singleslider/singleslider.label.js
  4. 1
      src/widget/singleslider/singleslider.normal.js

3
changelog.md

@ -1,4 +1,7 @@
# 更新日志 # 更新日志
2.0(2020-1)
- 修复单值系滑块滑动松手后发两次EVENT_CHANGE的问题
2.0(2019-12) 2.0(2019-12)
- 修复多层级单选下拉树主动设置container后搜索面板弹出问题 - 修复多层级单选下拉树主动设置container后搜索面板弹出问题
- bi.search_editor支持搜索中间含有空格的字符串 - bi.search_editor支持搜索中间含有空格的字符串

1
src/widget/singleslider/singleslider.js

@ -173,7 +173,6 @@ BI.SingleSlider = BI.inherit(BI.Single, {
} }
widget.element.removeClass("dragging"); widget.element.removeClass("dragging");
mouseMoveTracker.releaseMouseMoves(); mouseMoveTracker.releaseMouseMoves();
self.fireEvent(BI.SingleSlider.EVENT_CHANGE);
}, window); }, window);
widget.element.on("mousedown", function (event) { widget.element.on("mousedown", function (event) {
if(!widget.isEnabled()) { if(!widget.isEnabled()) {

1
src/widget/singleslider/singleslider.label.js

@ -158,7 +158,6 @@ BI.SingleSliderLabel = BI.inherit(BI.Single, {
} }
widget.element.removeClass("dragging"); widget.element.removeClass("dragging");
mouseMoveTracker.releaseMouseMoves(); mouseMoveTracker.releaseMouseMoves();
self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE);
}, window); }, window);
widget.element.on("mousedown", function (event) { widget.element.on("mousedown", function (event) {
if(!widget.isEnabled()) { if(!widget.isEnabled()) {

1
src/widget/singleslider/singleslider.normal.js

@ -124,7 +124,6 @@ BI.SingleSliderNormal = BI.inherit(BI.Single, {
} }
widget.element.removeClass("dragging"); widget.element.removeClass("dragging");
mouseMoveTracker.releaseMouseMoves(); mouseMoveTracker.releaseMouseMoves();
self.fireEvent(BI.SingleSlider.EVENT_CHANGE);
}, window); }, window);
widget.element.on("mousedown", function (event) { widget.element.on("mousedown", function (event) {
if(!widget.isEnabled()) { if(!widget.isEnabled()) {

Loading…
Cancel
Save