-
- DarrenDuck
- Posts: 2
- Joined:
Scroll left/right on PC
Hello,
I was wondering if there is a way to scroll left/right on PC without having to click and drag on the scroll bar?
I have tried:
ctrl + mouse wheel
shift + mouse wheel
mouse wheel buttons "Scroll Left" + "Scroll Right"
Any ideas?
Thanks,
Darren
I was wondering if there is a way to scroll left/right on PC without having to click and drag on the scroll bar?
I have tried:
ctrl + mouse wheel
shift + mouse wheel
mouse wheel buttons "Scroll Left" + "Scroll Right"
Any ideas?
Thanks,
Darren
-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: Scroll left/right on PC
You can modify NoesisView.cs script to inject the horizontal mouse wheel event when shift modifier is active, it is a bit of a hack but it is the easiest way:
A more advance approach would be to define a Behavior that you will attach to the control containing the ScrollViewer, so you can handle the PreviewMouseWheel event yourself: https://stackoverflow.com/a/42047117
Code: Select all
if (ev.delta.y != 0.0f)
{
if ((ev.modifiers & EventModifiers.Shift) == 0)
{
_uiView.MouseWheel((int)mouse.x, (int)mouse.y, -(int)(ev.delta.y * 40.0f));
}
else
{
_uiView.MouseHWheel((int)mouse.x, (int)mouse.y, (int)(ev.delta.y * 40.0f));
}
}Re: Scroll left/right on PC
Having to modify NoesisView.cs is far from ideal. Maybe we could implement this feature and enable it with a macro (defaulted to off by default to be WPF compliant).
Who is online
Users browsing this forum: No registered users and 7 guests