when a modal operator has bl_options GRAB_CURSOR enabled, event.type MIDDLEMOUSE isn't raised if event.mouse_prev_x is greater than context.area.width #80966

Closed
opened 2020-09-19 18:08:27 +02:00 by michael campbell · 9 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-09-18 16:11, hash: 7b988188dc
Worked: (newest version of Blender that worked as expected)

Short description of error

when a modal operator has bl_options GRAB_CURSOR enabled, event.type MIDDLEMOUSE isn't raised if event.mouse_prev_x is greater than context.area.width. In other words if the mouse has wrapped around the region more than once then MIDDLEMOUSE event isnt raised.

basically, during a modal, I'm trying to get the cursor to continue wrapping around the 3d viewport after using middle mouse to rotate the 3d view.

problem 1: This bug (no middle mouse event if mouse has wrapped around)
problem 2: grab_mouse is cancelled when leaving view3d.rotate

install below addon and then press 'ctrl shift f' with an object selected, and choose solidify from the menu that pops up. move the mouse around 10 pixels to the left, press middle mouse and rotate the view, let go of middle mouse, move the cursor outside of the 3d viewport. Cursor wrapping is no longer working.

now do the same as above, but before pressing the middle mouse to rotate the view, make the cursor wrap around a few times. This time the middle mouse event isn't raised at all. But if you move the middle mouse back a few wrap arounds, then the middle mouse will be raised.

blender_addon_template.rar

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06 **Blender Version** Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-09-18 16:11, hash: `7b988188dc` Worked: (newest version of Blender that worked as expected) **Short description of error** when a modal operator has bl_options GRAB_CURSOR enabled, event.type MIDDLEMOUSE isn't raised if event.mouse_prev_x is greater than context.area.width. In other words if the mouse has wrapped around the region more than once then MIDDLEMOUSE event isnt raised. basically, during a modal, I'm trying to get the cursor to continue wrapping around the 3d viewport after using middle mouse to rotate the 3d view. problem 1: This bug (no middle mouse event if mouse has wrapped around) problem 2: grab_mouse is cancelled when leaving view3d.rotate install below addon and then press 'ctrl shift f' with an object selected, and choose solidify from the menu that pops up. move the mouse around 10 pixels to the left, press middle mouse and rotate the view, let go of middle mouse, move the cursor outside of the 3d viewport. Cursor wrapping is no longer working. now do the same as above, but before pressing the middle mouse to rotate the view, make the cursor wrap around a few times. This time the middle mouse event isn't raised at all. But if you move the middle mouse back a few wrap arounds, then the middle mouse will be raised. [blender_addon_template.rar](https://archive.blender.org/developer/F8899640/blender_addon_template.rar)

Added subscriber: @3di

Added subscriber: @3di

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Thanks for the report. Unfortunately the scenario described is too time consuming for us to track down, we require the bug reporter to narrow down the problem.

To investigate problems with python code, a .blend file with only the necessary code in the text editor is preferable.

If the bug reporter does not provide this, the triager or the developers themselves will have to investigate and simplify the code.

And with the number of reports opened daily, this is not feasible.

Thanks for the report. Unfortunately the scenario described is too time consuming for us to track down, we require the bug reporter to narrow down the problem. To investigate problems with python code, a .blend file with only the necessary code in the text editor is preferable. If the bug reporter does not provide this, the triager or the developers themselves will have to investigate and simplify the code. And with the number of reports opened daily, this is not feasible.

ah ok, thanks. I've just pinged the hardops dev to join in the conversation, he's probably already aware of the root cause, as he's been discussing it recently.

ah ok, thanks. I've just pinged the hardops dev to join in the conversation, he's probably already aware of the root cause, as he's been discussing it recently.
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

Any update here ?

Any update here ?

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'
Germano Cavalcante self-assigned this 2020-10-14 17:02:48 +02:00

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
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
3 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#80966
No description provided.