August 13, 2025Aug 13 On Forge 58.0.5 (MC 1.21.8), InputEvent.MouseScrollingEvent is marked cancellable (implements Cancellable, uses a CancellableEventBus), but the event type does not expose setCanceled(boolean) or cancel() from a @SubscribeEvent listener. What’s the correct way to cancel this event (or otherwise block vanilla scroll behavior) from mod code? Can someone plz point me in the right direction? Thx Edited August 13, 2025Aug 13 by Zacomat solved
August 13, 2025Aug 13 Forge for 1.21.6 and newer uses EventBus 7, which is a major rewrite. You can read the migration guide here, this explains how to cancel events. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.