[BUG #8162] Moved mouse wheel event detection to an environment check.
[BUG #8162] Updated mouse wheel feature check to support different window instances