mouse scroll wheel acting as input on imagebutton
in OpenSesame
Does anyone have insight on preventing a mouse scroll wheel action while the cursor is over an image button acting as input (the same as a button click).
this is a basic example with one form
image for the button just so it will run

Comments
Hi Kazald,
your experiment is empty, I can't check the behavior you are describing. Could you reupload with one of the forms you experience the problem with?
Eduard
one additional note, i tried a form with multiple image buttons and a mouse response limited to 1;3, however scrolling over one image button and then clicking another will result as the scrolled button being read as clicked.
Hi Kazald,
Ah, I see. At the moment, there is no way to change this as a setting in Opensesame. If it is really important to you, you can go this file in your Opensesame installation
lib/python3.7/site-packages/libopensesame/widgets/_form.pyand change line 192 in following way:
ms = mouse(self.experiment, buttonlist=[1,2,3], timeout=0)instead of
ms = mouse(self.experiment, buttonlist=[1,2,3], timeout=0)After a restart of Opensesame, scrolling should not trigger mouse events any more.
Good luck,
Eduard
@sebastiaan, should this be a feature? If so, I could make a PR.
Hi @kazald ,
Thanks for pointing this out. Indeed, it's a bit unexpected behavior which I never noticed until now. @eduard , yes could you submit a PR for this?
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Yes!
Thank you eduard and sebastian.
One note for anyone else, the original _form/py code reads as
ms = mouse(self.experiment, timeout=0)
Adding the buttonlist here fixed the issue.