Scrolling with mouse wheel broken #120925

Closed
opened 2024-04-22 12:57:31 +02:00 by Jacques Lucke · 1 comment
Member

System Information
Operating system: Linux-6.8.4-200.fc39.x86_64-x86_64-with-glibc2.38 64 Bits, WAYLAND UI
Graphics card: AMD Radeon RX 5700 (radeonsi, navi10, LLVM 17.0.6, DRM 3.57, 6.8.4-200.fc39.x86_64) AMD 4.6 (Core Profile) Mesa 23.3.6

Blender Version
Broken: version: 4.2.0 Alpha, hash: eb4204120bf6644bc518a62913dc33494d138933

Short description of error
Pretty much the same as #120587, just that it's still not fixed for my mouse, which is the Logitech MX Master 3.

Using the scroll wheel does not work (middle mouse button doesn't work either, but that may be an independent issue).

I added this debug print:

diff --git a/intern/ghost/intern/GHOST_SystemWayland.cc b/intern/ghost/intern/GHOST_SystemWayland.cc
index 9ada3687190..13ca8364795 100644
--- a/intern/ghost/intern/GHOST_SystemWayland.cc
+++ b/intern/ghost/intern/GHOST_SystemWayland.cc
@@ -3813,6 +3813,8 @@ static void pointer_handle_frame(void *data, wl_pointer * /*wl_pointer*/)
 
   /* Handle value120 to discrete steps first. */
   if (seat->pointer_scroll.discrete120_xy[0] || seat->pointer_scroll.discrete120_xy[1]) {
+    printf(
+        "%d %d\n", seat->pointer_scroll.discrete120_xy[0], seat->pointer_scroll.discrete120_xy[1]);
     /* The values will have been normalized so 120 represents a single click-step. */
     seat->pointer_scroll.discrete_xy[0] = seat->pointer_scroll.discrete120_xy[0] / 120;
     seat->pointer_scroll.discrete_xy[1] = seat->pointer_scroll.discrete120_xy[1] / 120;

The output is this (note that I added a newline after each manual action, for the last section I scrolled a bit further):

0 -88
0 -16
0 -24
0 -24

0 -72
0 -24
0 -16

0 -80
0 -24
0 -16

0 -64
0 -32
0 -16

0 -88
0 -24
0 -16

0 -104
0 -64
0 -88
0 -88
0 -88
0 -88
0 -64
0 -56
0 -40
0 -40
0 -16

Only if I move the mouse wheel very quickly, it is recognized by Blender currently.

**System Information** Operating system: Linux-6.8.4-200.fc39.x86_64-x86_64-with-glibc2.38 64 Bits, WAYLAND UI Graphics card: AMD Radeon RX 5700 (radeonsi, navi10, LLVM 17.0.6, DRM 3.57, 6.8.4-200.fc39.x86_64) AMD 4.6 (Core Profile) Mesa 23.3.6 **Blender Version** Broken: version: 4.2.0 Alpha, hash: `eb4204120bf6644bc518a62913dc33494d138933` **Short description of error** Pretty much the same as #120587, just that it's still not fixed for my mouse, which is the `Logitech MX Master 3`. Using the scroll wheel does not work (middle mouse button doesn't work either, but that may be an independent issue). I added this debug print: ```diff diff --git a/intern/ghost/intern/GHOST_SystemWayland.cc b/intern/ghost/intern/GHOST_SystemWayland.cc index 9ada3687190..13ca8364795 100644 --- a/intern/ghost/intern/GHOST_SystemWayland.cc +++ b/intern/ghost/intern/GHOST_SystemWayland.cc @@ -3813,6 +3813,8 @@ static void pointer_handle_frame(void *data, wl_pointer * /*wl_pointer*/) /* Handle value120 to discrete steps first. */ if (seat->pointer_scroll.discrete120_xy[0] || seat->pointer_scroll.discrete120_xy[1]) { + printf( + "%d %d\n", seat->pointer_scroll.discrete120_xy[0], seat->pointer_scroll.discrete120_xy[1]); /* The values will have been normalized so 120 represents a single click-step. */ seat->pointer_scroll.discrete_xy[0] = seat->pointer_scroll.discrete120_xy[0] / 120; seat->pointer_scroll.discrete_xy[1] = seat->pointer_scroll.discrete120_xy[1] / 120; ``` The output is this (note that I added a newline after each manual action, for the last section I scrolled a bit further): ``` 0 -88 0 -16 0 -24 0 -24 0 -72 0 -24 0 -16 0 -80 0 -24 0 -16 0 -64 0 -32 0 -16 0 -88 0 -24 0 -16 0 -104 0 -64 0 -88 0 -88 0 -88 0 -88 0 -64 0 -56 0 -40 0 -40 0 -16 ``` Only if I move the mouse wheel very quickly, it is recognized by Blender currently.
Jacques Lucke added the
Type
Report
Status
Needs Triage
Priority
Normal
labels 2024-04-22 12:57:32 +02:00
Author
Member
CC @ideasman42
Blender Bot added
Status
Resolved
and removed
Status
Needs Triage
labels 2024-04-23 05:41:53 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#120925
No description provided.