Tree/Table on Win32 receive SWT.MouseHorizontalWheel but scroll vertically instead of horizontally
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Start by reading Scrollable.WM_MOUSEHWHEEL() and the wmScrollWheel(..., true) path mentioned in the report, then compare how Tree and StyledText handle horizontal wheel events. Reproduce with a Tree or Table using SWT.H_SCROLL on Win32 and check whether horizontal input scrolls horizontally rather than vertically. The report does not name a test file.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Environment:
- Windows 10
- Eclipse Platform 4.40
- SWT Win32
- Logitech MX Master 3S (thumb wheel)
Observed behavior:
When using the horizontal mouse wheel over SWT Tree and Table controls, SWT correctly generates SWT.MouseHorizontalWheel events.
However, the controls do not scroll horizontally. Instead, the content scrolls vertically, behaving as if a normal mouse wheel event had been received.
The same horizontal wheel works as expected in StyledText controls.
Reproduction:
- Create a Tree or Table with SWT.H_SCROLL.
- Ensure horizontal scrolling is possible.
- Move the horizontal wheel (thumb wheel on MX Master 3S).
Expected result:
The Tree/Table content scrolls horizontally.
Actual result:
The content scrolls vertically.
Additional observations:
The following SWT event is received:
SWT.MouseHorizontalWheel
For example:
HORIZONTAL
count: -3
class: class org.eclipse.swt.widgets.Tree
The control has a valid horizontal scrollbar:
org.eclipse.swt.widgets.Tree hBar=ScrollBar {}
The same behavior occurs with:
- Tree
- Table
- TreeViewer
- TableViewer
- CommonNavigator
StyledText behaves correctly and scrolls horizontally.
Source investigation:
While debugging SWT Win32 sources I found that
Scrollable.WM_MOUSEHWHEEL() delegates to:
wmScrollWheel(..., true)
For Tree controls, the 'update' parameter is false because
(state & CANVAS) == 0.
Consequently execution follows the non-update code path:
long code = callWindowProc(
handle,
OS.WM_MOUSEWHEEL,
wParam,
lParam);
which appears to invoke WM_MOUSEWHEEL even for WM_MOUSEHWHEEL processing.
I am not yet sure whether this is the root cause, but it seemed noteworthy enough to mention.
- Lingua principale
- Java
- Stelle
- 202
- Fork
- 206
- Merge medio
- 14h 7m
- PR unite (30g)
- 103
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di eclipse-platform/eclipse.platform.swt
-
`SWT_AWT.initFrame` takes `(long, String)` in Java; the GTK native declares no `className` and the Cocoa native types it `const char *`Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
eclipse-platform/eclipse.platform.swt#3665 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
eclipse-platform/eclipse.platform.swt#3546 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
eclipse-platform/eclipse.platform.swt#3428 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 75/100
eclipse-platform/eclipse.platform.swt#3336 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
eclipse-platform/eclipse.platform.swt#3718 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di eclipse-platform/eclipse.platform.swt
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
apache/rocketmq-dashboard#6610 ·
I maintainer di solito rispondono entro 3 giorni
-
Citationcount column sorts alphabetically instead of numericallyForse già presa @kpunia306 l’ha presa oggi. Apertastatus: needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
JabRef/jabref#17459 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
`RedisList.reversed()` view returns an empty `range` and `trim` removes all elementsForse già presa @CCCLL l’ha presa oggi. Apertastatus: waiting-for-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
spring-projects/spring-data-redis#3461 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
javapathfinder/jpf-core#649 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
devops-thiago/ThrillhouseBot#1093 ·
I maintainer di solito rispondono entro 1 giorno