mirror of
https://github.com/CCBlueX/LiquidBounce.git
synced 2025-09-04 08:16:18 +00:00
fix(CameraClip): ScrollAdjust not reset when mod key released (#6764)
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
package net.ccbluex.liquidbounce.features.module.modules.render
|
||||
|
||||
import net.ccbluex.liquidbounce.config.types.nesting.ToggleableConfigurable
|
||||
import net.ccbluex.liquidbounce.event.events.KeyboardKeyEvent
|
||||
import net.ccbluex.liquidbounce.event.events.MouseScrollEvent
|
||||
import net.ccbluex.liquidbounce.event.events.MouseScrollInHotbarEvent
|
||||
import net.ccbluex.liquidbounce.event.events.PerspectiveEvent
|
||||
@@ -87,6 +88,13 @@ object ModuleCameraClip : ClientModule("CameraClip", Category.RENDER) {
|
||||
scrolledDistance += (sensitivity * it.vertical).toFloat()
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
private val releaseModifierHandler = handler<KeyboardKeyEvent> {
|
||||
if (it.key == modifierKey && it.action == GLFW.GLFW_RELEASE) {
|
||||
reset()
|
||||
}
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
private val hotbarScrollHandler = handler<MouseScrollInHotbarEvent> {
|
||||
if (canPerformScroll) {
|
||||
|
Reference in New Issue
Block a user