Is horizontal mouse scrolling supported?

SyntaxEditor for WPF Forum

The latest build of this product (v25.1.4) was released 2 months ago, which was before this thread was created.
Posted 3 days ago by Stefano
Version: 25.1.4
Avatar

Hello,

Some of our customers use mice with a horizontal scroll wheel (e.g. Logitech MX Master 3), but it seems that horizontal scrolling is not supported in the SyntaxEditor.

At the moment, the only workaround we found is to hold Shift while using the vertical scroll wheel, which works as expected. However, the horizontal wheel itself does not trigger any scrolling in the editor.

Is horizontal mouse scrolling currently supported? If not, is there any recommended way to enable it or a plan to support it in the future?

Thanks in advance!

Comments (1)

Posted 3 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Stefano,

Horizontal scroll wheel tilt is not supported in the WPF SyntaxEditor at this time since WPF does not natively support detecting/reporting that event to controls.  The only pure WPF option for control developers is to use a modifier key like Shift with the vertical scroll wheel, which is what we do.

That being said, as the application developer, you can probably watch for the WM_MOUSEHWHEEL Win32 message on your Window.  Search the web for how to handle Win32 messages in WPF.  It seems that the high-order word of the wParam is the tilt value.  If the mouse is over the SyntaxEditor when that message is received, you could call editor.ActiveView.Scroller methods like ScrollLeft, ScrollRight, or ScrollTo to scroll the view.


Actipro Software Support

Add Comment

Please log in to a validated account to post comments.