This is a patch for bug number #4985. When using the mouse wheel on an inverted 3d view (that is back, left or bottom) the name display changed to front (right, top). Also when using mouse wheel with modifier keys (strg/shift) on a normal view, it changed the display to the inverted variant. I fixed this in source/blender/src/toets.c. What I did was check the type of event that is handeled before setting/unsetting V3D_OPP_DIRECTION_NAME. I simply added two if statements and expanded the comment by a line explaining it a bit.
Hope that helps.
-Jobbe
Description
Description