Cursor icon stuck in scroll mode #78698
Labels
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#78698
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Linux-5.4.0-7634-generic-x86_64-with-debian-bullseye-sid 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.100
Blender Version
Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-07-06 20:39, hash:
e20171e59f
Worked: (newest version of Blender that worked as expected)
Short description of error
Cursor icon stuck in scroll mode when deleting modifier with 'X' shortcut
Exact steps for others to reproduce the error
Object with a modifier
Cursor over any number value in the modifier panel (the cursor will change icon to horizontal scroll icon).
press X to delete the modifier.
Cursor stuck in scroll icon.
Added subscriber: @Dalkoom
#79527 was marked as duplicate of this issue
Added subscriber: @iss
Can't reproduce.
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: Radeon RX550/550 Series ATI Technologies Inc. 4.5.13586 Core Profile Context 19.12.2 26.20.15002.61
Steps to reproduce the error with : X to delete or Ctrl+A to Apply modifier
Added subscriber: @HooglyBoogly
Changed status from 'Needs Triage' to: 'Confirmed'
Wow, this is odd. You have to use the shortcuts very quickly after using a number / slider button, and then the cursor isn't reset.
I'm not quite sure where to start here. I expect it's something about the panel (and button) being removed on the same redraw as the button would normally become inactive.
Added subscriber: @Eary
Added subscriber: @JulianEisel
Indeed, the issue is that the button doesn't run its
exit
handler because it's removed instead of having the button move away from it.Although a simple solution would be resetting the cursor from the modifier delete operator, I don't like the idea of that.
This diff mostly fixes the problem by resetting the cursor whenever there isn't an active button:
But, as you might expect, it resets the cursor too much. However, that's actually because of the UI handlers for all of the other spaces, as seen below:
This leads me to the question: Why is the handler even running for spacetypes that my mouse isn't even in? That doesn't seem necessary to me.
Anyway, I wonder what @JulianEisel thinks about this.
The active button should be properly exited when the block gets removed. The panel removal code actually does the block removal just fine, it just needs the context to properly exit the button. I.e. I'd propose the following fix:
Re the handlers - just with a few mouse movements I don't see this effect, what do you do to trigger it? But also, this doesn't concern me too much, the logic there only checks if the mouse hovers some button or handles button activation events. Nothing expensive and nothing that would break things. Of course still nice to avoid.
Oh, I forgot about that panel deletion! I'll commit that change you suggested, that's definitely the right way to go.
With P1571 I can get handlers for other areas to reset the cursor like this:
Screencast from 08-05-2020 05:25:38 PM.webm
Maybe I'll look into making a separate patch that can stop other area's handlers from running. Agreed though, not the highest priority.
This issue was referenced by
c5b6b3d82f
Changed status from 'Confirmed' to: 'Resolved'