View Issue Details

IDProjectCategoryLast Update
0007125Valley 1GUIApr 17, 2012 12:41 pm
Reporterjerith Assigned ToChris_McElligottPark  
Severitymajor 
Status closedResolutionnot fixable 
Product Version0.930 
Summary0007125: Mouse wheel events are noticed when AVWW is not the active window
DescriptionMouse wheel events (and mouse move events) seem to be noticed by the game even when it isn't the active window. (On OS X 10.6, at least.) This is means that random web browsing (or anything else where the mouse wheel is used) can rebind the active ability and cause problems when switching back to the game to continue playing.
TagsNo tags attached.
Internal WeightNew

Activities

Chris_McElligottPark

Apr 17, 2012 12:24 pm

administrator   ~0022187

Nuts! Looks like you've found another bug in unity. Naught that we can do about it since we can't even tell if the window has focus. Hopefully a future version of unity will fix one or both of these, along with a laundry list of other things.

jerith

Apr 17, 2012 12:32 pm

reporter   ~0022188

I thought it would be something like that. :-/

From the behaviour of the tooltips, it seems that the mouse move events get through, but the mouse cursor position doesn't change when queried. I can see a way to use that as a "do we have focus?" heuristic, but just mentioning it makes me feel dirty.

jerith

Apr 17, 2012 12:38 pm

reporter   ~0022189

Would it be possible to allow a keyboard modifier to the binding? I can see shift+mousewheel being almost as convenient to use as just mousewheel, but immune to the background event leakage. (I can also see it being hard to add that to the control management UI, so I don't have much hope that it'll happen.)

Chris_McElligottPark

Apr 17, 2012 12:41 pm

administrator   ~0022190

"From the behaviour of the tooltips, it seems that the mouse move events get through, but the mouse cursor position doesn't change when queried. I can see a way to use that as a "do we have focus?" heuristic, but just mentioning it makes me feel dirty."

Yeah, there are a lot of ways that can go wrong, especially on certain mac laptops. The cursor position has a habit of jumping to 0,0 or -1,-1 when you aren't moving the cursor _right then_, for instance, so we already have to work around that.

"Would it be possible to allow a keyboard modifier to the binding? I can see shift+mousewheel being almost as convenient to use as just mousewheel, but immune to the background event leakage. (I can also see it being hard to add that to the control management UI, so I don't have much hope that it'll happen.)"

It's a good suggestion for sometime post-1.0 if folks are interested in that.

Issue History

Date Modified Username Field Change
Apr 17, 2012 11:59 am jerith New Issue
Apr 17, 2012 12:24 pm Chris_McElligottPark Internal Weight => New
Apr 17, 2012 12:24 pm Chris_McElligottPark Note Added: 0022187
Apr 17, 2012 12:24 pm Chris_McElligottPark Status new => closed
Apr 17, 2012 12:24 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Apr 17, 2012 12:24 pm Chris_McElligottPark Resolution open => not fixable
Apr 17, 2012 12:32 pm jerith Note Added: 0022188
Apr 17, 2012 12:38 pm jerith Note Added: 0022189
Apr 17, 2012 12:41 pm Chris_McElligottPark Note Added: 0022190
Apr 14, 2014 9:28 am Chris_McElligottPark Category Bug - UI => GUI