Skip to content

Commit

Permalink
fix(Browser): Handle mouse wheel coordinates. (#14533)
Browse files Browse the repository at this point in the history
  • Loading branch information
workgroupengineering authored and maxkatz6 committed Feb 9, 2024
1 parent 1a7a99c commit 1a89228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Browser/Avalonia.Browser/AvaloniaView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ private bool OnPointerCancel(JSObject args)

private bool OnWheel(JSObject args)
{
return _topLevelImpl.RawMouseWheelEvent(new Point(args.GetPropertyAsDouble("clientX"), args.GetPropertyAsDouble("clientY")),
return _topLevelImpl.RawMouseWheelEvent(new Point(args.GetPropertyAsDouble("offsetX"), args.GetPropertyAsDouble("offsetY")),
new Vector(-(args.GetPropertyAsDouble("deltaX") / 50), -(args.GetPropertyAsDouble("deltaY") / 50)), GetModifiers(args));
}

Expand Down

0 comments on commit 1a89228

Please sign in to comment.