mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
WPF OnMouseWheel - move variables inside of null check
This commit is contained in:
@@ -1116,12 +1116,13 @@ namespace CefSharp.Wpf
|
||||
|
||||
protected override void OnMouseWheel(MouseWheelEventArgs e)
|
||||
{
|
||||
var point = e.GetPosition(this);
|
||||
var modifiers = e.GetModifiers();
|
||||
var browser = GetBrowser();
|
||||
|
||||
if (browser != null)
|
||||
{
|
||||
var point = e.GetPosition(this);
|
||||
var modifiers = e.GetModifiers();
|
||||
|
||||
browser.SendMouseWheelEvent(
|
||||
(int)point.X,
|
||||
(int)point.Y,
|
||||
|
||||
Reference in New Issue
Block a user