aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDefaultParameterConfig.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-04-25 17:31:37 +0900
committersyeyoung <cyong06@naver.com>2021-04-25 17:31:37 +0900
commitf54b267b337dee36fc9997abd1193393db11878e (patch)
tree8da9e45c1537edcce86bc05972f421bbe0fc3d52 /src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDefaultParameterConfig.java
parent60f06415a290a659b5c8a56b1d9f879bbea91d10 (diff)
downloadSkyblock-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-xsrc/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDefaultParameterConfig.java3
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;