nvda
65258ec4 - Make sure that the mouse object is not accidentially set at start-up if mouse tracking is off. Re #2702

Commit
12 years ago
Make sure that the mouse object is not accidentially set at start-up if mouse tracking is off. Re #2702 * mouseHandler.executeMouseEvent: fetch oldMouseObject from globalVars.mouseObject rather than api.getMouseObject() as we want to see that its None if it is, rather than it being auto-calculated. Otherwise the first time moving the mouse after turning on mouse tracking, nothing would be announced until the mouse was moved off that object. * core.main: don't set the mouseObject before initializing mouseHandler. This is no longer needed as NVDA will now cope fine with mouseObject being None as api.getMouseObject will auto-calculate if necessary. * mouseHandler.initialize: don't set the mouseObject if mouse tracking is off. * api.getMouseObject(): when auto-calculating by using objectFromPoint, make sure to jump up the parents past any object that has been marked as being transparent to eh mouse. this ensures that the same object is fetched when mouse tracking is off as when it would have been set when it was on.
References
Parents
Loading