Continuous panning jumps to a new position when release or exceeding window border #102787

Closed
opened 2022-11-26 14:06:40 +01:00 by Yuxuan Yan · 3 comments

System Information
Operating system: Linux-6.0.9-arch1-1-x86_64-with-glibc2.36 64 Bits
Graphics card: NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 520.56.06
Desktop manager: dwm-4.2(https://dwm.suckless.org/) / Gnome (same behavior)

Blender Version
Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: b292cfe5a9
Worked: same copy but in Ubuntu 20.04

Short description of error
The bug showed up when first time opening blender in new OS.
With Continuous Grub option set on, mouse will jumps to a different position when release middle button or mouse exceed window border.
Bug exists in every possible editor, 3D, image, timeline, etc.

Exact steps for others to reproduce the error
Default cube, Middle Button/Shift+Middle Button/Ctrl+Middle Button to Rotate/Pan/Zoom.
Mouse will stay in release position but jump to a different position as soon as move mouse or press mouse button.
When mouse exceeds board of blender window, mouse will jump to a new position each mouse input.
Everything works fine when Continuous Grub set off.
Everything works fine with Ubuntu 20.04+Gnome

I'm not sure this is a Blender issue or an Linux issue.
2022-11-27 04-37-22.mp4

**System Information** Operating system: Linux-6.0.9-arch1-1-x86_64-with-glibc2.36 64 Bits Graphics card: NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 520.56.06 Desktop manager: dwm-4.2(https://dwm.suckless.org/) / Gnome (same behavior) **Blender Version** Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: `b292cfe5a9` Worked: same copy but in Ubuntu 20.04 **Short description of error** The bug showed up when first time opening blender in new OS. With `Continuous Grub` option set on, mouse will jumps to a different position when release middle button or mouse exceed window border. Bug exists in every possible editor, 3D, image, timeline, etc. **Exact steps for others to reproduce the error** Default cube, `Middle Button`/`Shift+Middle Button`/`Ctrl+Middle Button` to Rotate/Pan/Zoom. Mouse will stay in release position but jump to a different position as soon as move mouse or press mouse button. When mouse exceeds board of blender window, mouse will jump to a new position each mouse input. Everything works fine when `Continuous Grub` set off. Everything works fine with Ubuntu 20.04+Gnome I'm not sure this is a Blender issue or an Linux issue. [2022-11-27 04-37-22.mp4](https://archive.blender.org/developer/F13971252/2022-11-27_04-37-22.mp4)
Author

Added subscriber: @Cdmium

Added subscriber: @Cdmium

Closed as duplicate of #89399

Closed as duplicate of #89399
Author

I've confirmed this is not a bug with Blender, but with libinput and dwm.

Setting mouse speed through Coordinate Transformation Matrix

xinput --set-prop <device> "Coordinate Transformation Matrix" $speed, 0, 0, 0, $speed, 0, 0, 0, 1

will cause mouse jump to wrong position when software trying to set mouse position (Blender Continuous Grub, dwm resizing floating window, etc.).

To solve this issue,
set Coordinate Transformation Matrix to default value

xinput --set-prop <device> "Coordinate Transformation Matrix" 1, 0, 0, 0, 1, 0, 0, 0, 1

use libinput Accel Speed or Device Accel Constant Deceleration instead to adjust mouse speed

xinput --set-prop <device> "libinput Accel Speed" -1
# or
xinput --set-prop <device> "Device Accel Constant Deceleration" 2
I've confirmed this is not a bug with Blender, but with libinput and dwm. Setting mouse speed through `Coordinate Transformation Matrix` ``` xinput --set-prop <device> "Coordinate Transformation Matrix" $speed, 0, 0, 0, $speed, 0, 0, 0, 1 ``` will cause mouse jump to wrong position when software trying to set mouse position (Blender `Continuous Grub`, dwm resizing floating window, etc.). To solve this issue, set `Coordinate Transformation Matrix` to default value ``` xinput --set-prop <device> "Coordinate Transformation Matrix" 1, 0, 0, 0, 1, 0, 0, 0, 1 ``` use `libinput Accel Speed` or `Device Accel Constant Deceleration` instead to adjust mouse speed ``` xinput --set-prop <device> "libinput Accel Speed" -1 # or xinput --set-prop <device> "Device Accel Constant Deceleration" 2 ```
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
2 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#102787
No description provided.