"consume mouse wheel" problem

Hi Aliensa

You can set “Consume Mouse Wheel” directly in the details panel like this:

If you are creating the scroll box at run time, setting this requires a custom scroll box class. For some reason, the dev team never exposed a “Set Consume Mouse Wheel” function to blueprints, which means you cannot dynamically set it at run time.

To get around this, you can create a custom scroll box object, disable “Consume Mouse Wheel” by default, and use that object instead.

  1. In the content browser, right click → Selelct “New Blueprint Class”.

  2. Expose all classes and search for “Scroll Box”

  1. Open the widget class you have just created and set the default value for “ConsumeMouseWheel”

  2. Go back to your main widget blueprint graph. Instead of creating the normal scroll box, create an instance of your object instead. Right-click → Construct object from class → Select your custom class

272512-consumemousewheel-pt3.png

Do a simple print just to test:

272515-consumemousewheel-pt5.png

Note you can also use your custom scroll box in the widget designer as well. Just search for it in your pallet.

I hope this helps.

Good luck! :slight_smile:

1 Like