WPF OnMouseWheel - move variables inside of null check

This commit is contained in:
amaitland
2016-01-09 08:08:58 +10:00
parent 32a1fadbed
commit c19dc85494
+3 -2
View File
@@ -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,