fix indentation issue

This commit is contained in:
Anciety 2019-04-20 08:56:47 +08:00
parent 414bef0ce1
commit 0a3b1c6b49

View File

@ -1431,11 +1431,13 @@ public class FieldPanel extends JPanel
if (e.isShiftDown()) {
// horizontal scroll (only move viewport)
if (viewport != null) {
if (viewport != null) {
Point pos = viewport.getViewPosition();
viewport.setViewPosition(new Point(Math.max(0, pos.x + scrollAmount), pos.y));
viewport.setViewPosition(
new Point(Math.max(0, pos.x + scrollAmount), pos.y));
}
} else {
}
else {
scrollView(scrollAmount);
}
}