Scroll wheel bug under Vista

SyntaxEditor for Windows Forms Forum

Posted 16 years ago by Sten Linnarsson
Version: 4.0.0261
Platform: .NET 2.0
Environment: Windows Vista (32-bit)
Avatar
Under Vista the scroll wheel doesn't work. This bug has been reported before, but it seemed that it was dismissed as due to a problem with the mouse driver.

I tested two mice. One was a Bluetooth mouse (Microsoft Wireless Notebook Presenter Mouse 8000): if I scroll very quickly on the wheel, the editor will sometimes jerk a little in the right direction, but it isn't useable. The other was a standard USB mouse (Microsoft Optical Wheel Mouse): I couldn't get any movement at all.

Environment 1:
Lenovo ThinkPad T61p
Windows Vista Universal 32-bit
Visual Studio 2008 beta 2

Steps to reproduce under environment 1:
Launch C# Demo Project. VS2008 performs conversion of project without problem (one file was not backed up). Launch project, then launch SDI Editor. Try to use scroll wheel in main editor pane - fails (for both mice, as above). Click several times in main editor, to generate text in Events pane so that scroll bars appear. Try to use scroll wheel in Events toolpane - works flawlessly.

The same pattern is true in my own application. All windows except SyntaxEditor work without problem.

I verified that the demo project still targets the .NET 2.0 runtime after conversion, and that all referenced DLLs were 2.0.

Environment 2:
IBM ThinkPad T42
Windows XP SP2
Visual Studio 2005

Steps to reproduce under environment 2:
I compiled the demo on a Windows XP machine running VS2005. I launched and verified that the scroll wheel worked in the editor (it did). I then transferred the executable to my Vista machine, launched it, and got the exact same problem as above (with both mice).

I should add that no other application has had problems with the scroll wheel under Vista.

Comments (2)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Sten,

Thanks for notifying us of this. The mouse wheel code was written back in .NET 1.0 when there wasn't a SystemInformation item for a mouse wheel increment. So we had hardcoded 120. However for newer high-resolution mice, it is 30. So what was happening is that it wasn't registering enough delta to scroll. We've updated our .NET 2.0 code to look at the SystemInformation setting that was added with .NET 2.0. This will be in the next maintenance release.


Actipro Software Support

Posted 16 years ago by Sten Linnarsson
Avatar
Thanks!

/Sten
The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.