diff options
author | syeyoung <cyong06@naver.com> | 2021-04-25 17:31:37 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-04-25 17:31:37 +0900 |
commit | f54b267b337dee36fc9997abd1193393db11878e (patch) | |
tree | 8da9e45c1537edcce86bc05972f421bbe0fc3d52 /src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDefaultParameterConfig.java | |
parent | 60f06415a290a659b5c8a56b1d9f879bbea91d10 (diff) | |
download | Skyblock-Dungeons-Guide-f54b267b337dee36fc9997abd1193393db11878e.tar.gz Skyblock-Dungeons-Guide-f54b267b337dee36fc9997abd1193393db11878e.tar.bz2 Skyblock-Dungeons-Guide-f54b267b337dee36fc9997abd1193393db11878e.zip |
oh wat
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDefaultParameterConfig.java')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDefaultParameterConfig.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDefaultParameterConfig.java b/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDefaultParameterConfig.java index 72411e62..d0d1e984 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDefaultParameterConfig.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDefaultParameterConfig.java @@ -72,6 +72,9 @@ public class PanelDefaultParameterConfig extends MPanel { @Override public void mouseScrolled(int absMouseX, int absMouseY, int relMouseX0, int relMouseY0, int scrollAmount) { + for (MPanel childComponent : getChildComponents()) { + if (!(childComponent instanceof MParameter) && childComponent.getBounds().contains(relMouseX0, relMouseY0)) return; + } if (scrollAmount > 0) offsetY -= 20; else if (scrollAmount < 0) offsetY += 20; if (offsetY < 0) offsetY = 0; |