Mouse Wheel Tolerance

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
teotoon
Posts: 135
Joined: Wed Aug 04, 2004 7:19 am
Location: Turkey

Mouse Wheel Tolerance

Post by teotoon »

Hello Dear Scripters,

I use a modded transform layer script. I prefer to change the values of X and Y values by scrolling mouse wheel while the pointer is on the value box. Now I want to modify the increment so as the mouse wheel change less value in the value box, say 0.05 per wheel tick instead of 0.25.

Which lines should I change in the script text?

Thanks in advance,

LG
User avatar
synthsin75
Posts: 9981
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Mouse Wheel Tolerance

Post by synthsin75 »

LM_TextControl:SetWheelInc(f)
https://mohoscripting.com/methods/320

You might need to add this to the existing text control box, as it might just be using the default. If it already exists, just change the argument value.
teotoon
Posts: 135
Joined: Wed Aug 04, 2004 7:19 am
Location: Turkey

Re: Mouse Wheel Tolerance

Post by teotoon »

Thanks a lot...
Post Reply