mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
29 lines
759 B
C#
29 lines
759 B
C#
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Controls.Presenters;
|
|
using Avalonia.Input;
|
|
using Avalonia.LogicalTree;
|
|
using Avalonia.Styling;
|
|
using DataBoxControl;
|
|
using DataBoxControl.Primitives;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Mesen.Controls
|
|
{
|
|
public class MesenScrollContentPresenter : ScrollContentPresenter
|
|
{
|
|
protected override Type StyleKeyOverride => typeof(ScrollContentPresenter);
|
|
|
|
protected override void OnPointerWheelChanged(PointerWheelEventArgs e)
|
|
{
|
|
if(!e.KeyModifiers.HasFlag(KeyModifiers.Control)) {
|
|
//Skip event if control is pressed, because this is used to zoom in/out
|
|
base.OnPointerWheelChanged(e);
|
|
}
|
|
}
|
|
}
|
|
}
|