Browse Source

REPORT-62984 设计器触摸板问题-双指向右滑动时,设计器界面同时向右下滑动

【问题原因】
修复REPORT-55989时实现了新的支持双向触摸滚动的MouseWheelListener,
但未删除旧的触摸板滚动处理逻辑,导致旧的纵向滚动逻辑也一起生效了

【改动思路】
删除旧的纵向滚动处理逻辑
feature/x
Starryi 3 years ago
parent
commit
f4ce22e862
  1. 7
      designer-realize/src/main/java/com/fr/grid/GridMouseAdapter.java

7
designer-realize/src/main/java/com/fr/grid/GridMouseAdapter.java

@ -879,12 +879,7 @@ public class GridMouseAdapter implements MouseListener, MouseWheelListener, Mous
* @param e * @param e
*/ */
public void mouseWheelMoved(MouseWheelEvent e) { public void mouseWheelMoved(MouseWheelEvent e) {
if (!InputEventBaseOnOS.isControlDown(e)) {
ElementCasePane reportPane = grid.getElementCasePane();
if (reportPane.isHorizontalScrollBarVisible()) {
reportPane.getVerticalScrollBar().setValue(reportPane.getVerticalScrollBar().getValue() + e.getWheelRotation() * 3);
}
}
} }
/** /**

Loading…
Cancel
Save