Skip to content

Can't unbind wheel (zoom in/out) #515

Open
@ArranTuna

Description

@ArranTuna

Describe the bug
Cannot unbind mouse wheel "zoom".

To Reproduce
client code:

bindKey('aim_weapon', 'both', function(key, state)
    toggleAllControls(state ~= 'down')
    toggleControl('aim_weapon', true)
end)

Do this in game:

  1. take sniper, push aim button
  2. use wheel

You can zoom in and out.

Expected behavior
Be unable to zoom in and out.

Additional context
Gallardo9944 said:

Don't know if it's related or not, but if you're not inside a vehicle and your camera target is set to someone with a vehicle, scrolling mouse wheel will simulate look-left and look-right tasks, meanwhile if you're in vehicle and spectate another player in vehicle, mouse wheel will do nothing. And it doesn't look like there's any way to prevent such behavior from within Lua.

From https://bugs.mtasa.com/view.php?id=9069

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions