Community
Participate
Working Groups
The problem is that `WM_MOUSEWHEEL` that is not a multiple of `OS.WHEEL_DELTA`. SWT merely divides amount by `OS.WHEEL_DELTA`, causing all fractional scrolling to be lost. Is user scrolls slowly, there is no scrolling at all. It was fixed very long ago via Bug 194143, where SWT started accumulating fractional scrolling. However, quickly after that, the patch was (accidentally?) negated by Bug 184063.
Created attachment 283673 [details] Test snippet Note that this test snippet only shows problems with mouse/touchpad devices that implement smooth scrolling. Other devices (probably the majority of all devices on market) always scroll in multiples of `OS.WHEEL_DELTA`.
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/166675
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/166676
Many touchpads will simulate mouse wheel if you drag two fingers over it.
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/166675 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=d56087d829a58cb54ccd23f2a8593c4d8f632f62
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/166676 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=fc90bbad46fa9c14ca3b5476a825ad76746d7aa7
(In reply to Eclipse Genie from comment #5) > Gerrit change > https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/166675 was > merged to [master]. > Commit: > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/ > ?id=d56087d829a58cb54ccd23f2a8593c4d8f632f62 (In reply to Eclipse Genie from comment #6) > Gerrit change > https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/166676 was > merged to [master]. > Commit: > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/ > ?id=fc90bbad46fa9c14ca3b5476a825ad76746d7aa7 Thanks Alexandr for the fix patches, resolving now.
Thanks for reviewing!
Verified in I20200818-0900 (using test snippet 'Bug565426_SmoothScrolling'): * Partial scrolling now works as expected.