private bool ProcessMouseWheelMessage(MouseWheelMessage wheelMessage) { if (!_tile.Enabled) { return(true); } ReleaseCapture(true); IMouseWheelHandler handler = _shortcutManager.GetMouseWheelHandler(wheelMessage.Shortcut); if (handler != null) { this.CaptureMouseWheelHandler = handler; handler.Wheel(wheelMessage.WheelDelta); MouseWheelManager.Instance.OnMouseWheel(); return(true); } return(false); }
private bool ProcessMouseWheelMessage(MouseWheelMessage wheelMessage) { if (!_tile.Enabled) { return(true); } if (wheelMessage.WheelDelta == 0) { if (CaptureMouseWheelHandler != null) { //NOTE: hack for Webstation; we can't totally discard mouse wheel messages because //they need to reset the timer that releases "wheel capture". So, if we see a wheel delta //of zero, we just don't process the message through the handler, which could cause an unwanted draw. MouseWheelManager.Instance.OnMouseWheel(); return(true); } //Invalid message; do nothing. return(false); } ReleaseCapture(true); IMouseWheelHandler handler = _shortcutManager.GetMouseWheelHandler(wheelMessage.Shortcut); if (handler != null) { this.CaptureMouseWheelHandler = handler; handler.Wheel(wheelMessage.WheelDelta); MouseWheelManager.Instance.OnMouseWheel(); return(true); } return(false); }
private bool ProcessMouseWheelMessage(MouseWheelMessage wheelMessage) { if (!_tile.Enabled) return true; ReleaseCapture(true); IMouseWheelHandler handler = _shortcutManager.GetMouseWheelHandler(wheelMessage.Shortcut); if (handler != null) { this.CaptureMouseWheelHandler = handler; handler.Wheel(wheelMessage.WheelDelta); MouseWheelManager.Instance.UpdateLastWheelTime(); return true; } return false; }
private bool ProcessMouseWheelMessage(MouseWheelMessage wheelMessage) { if (!_tile.Enabled) return true; if (wheelMessage.WheelDelta == 0) { if (CaptureMouseWheelHandler != null) { //NOTE: hack for Webstation; we can't totally discard mouse wheel messages because //they need to reset the timer that releases "wheel capture". So, if we see a wheel delta //of zero, we just don't process the message through the handler, which could cause an unwanted draw. MouseWheelManager.Instance.OnMouseWheel(); return true; } //Invalid message; do nothing. return false; } ReleaseCapture(true); IMouseWheelHandler handler = _shortcutManager.GetMouseWheelHandler(wheelMessage.Shortcut); if (handler != null) { this.CaptureMouseWheelHandler = handler; handler.Wheel(wheelMessage.WheelDelta); MouseWheelManager.Instance.OnMouseWheel(); return true; } return false; }