Opened 2 years ago

Last modified 2 years ago

#9653 assigned defect

MouseModes: uses_wheel is unused

Reported by: Zach Pearson Owned by: Zach Pearson
Priority: moderate Milestone:
Component: General Controls Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description (last modified by Zach Pearson)

The MouseMode base class has a uses_wheel property that looks like it's supposed to let arbitrary mouse modes override whatever is assigned to the wheel (I could be wrong about this assumption), but its value doesn't look like it's checked anywhere.

This could be a pretty useful idea if done right and a user wants to hijack the wheel when a modifier key is pressed.

pseudocode

if modifier:
    ...
else:
    session.mouse_modes.wheel(event)

Change History (2)

comment:1 by Zach Pearson, 2 years ago

Description: modified (diff)
Priority: blockermoderate

comment:2 by Zach Pearson, 2 years ago

Component: UnassignedGeneral Controls
Note: See TracTickets for help on using tickets.