Browse Source

Pull request #14837: REPORT-133059 fix: 东区拖拽面板事件响应问题

Merge in DESIGN/design from ~LEVY.XIE/design:fbp/release to fbp/release

* commit '913cdb789c9111f52b9b24bda7c3504de7920fb9':
  REPORT-133059 fix: 东区拖拽面板事件响应问题
fbp/merge
Levy.Xie-解安森 3 months ago
parent
commit
21d3b6ff73
  1. 11
      designer-base/src/main/java/com/fr/design/gui/icontainer/UIEastResizableContainer.java

11
designer-base/src/main/java/com/fr/design/gui/icontainer/UIEastResizableContainer.java

@ -54,6 +54,7 @@ public class UIEastResizableContainer extends JPanel {
private static final int DRAG_GAP_SIZE = 10;
private Point dragPoint;
private boolean dragging;
public UIEastResizableContainer() {
this(new JPanel(), new JPanel());
@ -71,12 +72,20 @@ public class UIEastResizableContainer extends JPanel {
public void mousePressed(MouseEvent e) {
if (isEnableDrag(e)) {
dragPoint = e.getPoint();
dragging = true;
}
}
@Override
public void mouseDragged(MouseEvent e) {
resizePanel(e);
if (dragging) {
resizePanel(e);
}
}
@Override
public void mouseReleased(MouseEvent e) {
dragging = false;
}
};

Loading…
Cancel
Save