Tree/Table on Win32 receive SWT.MouseHorizontalWheel but scroll vertically instead of horizontally
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 202
- Fork
- 206
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 115
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eclipse-platform/eclipse.platform.swt
-
[Win32] Table tooltip indexes cell font with subitem -1Có thể đã có người làm @fdesbiens đã nhận 12 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
eclipse-platform/eclipse.platform.swt#3752 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
eclipse-platform/eclipse.platform.swt#3546 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
eclipse-platform/eclipse.platform.swt#3428 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 75/100
eclipse-platform/eclipse.platform.swt#3336 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
HiDPI Windows
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 54/100
eclipse-platform/eclipse.platform.swt#3777 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eclipse-platform/eclipse.platform.swt
Issue tương tự
-
[Bug] 资源包列表 与 模组/数据包/世界 列表排列顺序不一致Có thể đã có người làm @fishdry1000 đã nhận 3 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
AtlasOfLivingAustralia/species-lists#882 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
ballerina-platform/ballerina-library#9458 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
UGS-FX 2.1.27 Open File IssueĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
winder/Universal-G-Code-Sender#3242 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
PCL-Community/PCL-CE#3767 ·
Maintainer thường phản hồi trong vòng 1 ngày