Fix: Inconsistent input drag editing for factor properties #112004
No reviewers
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#112004
Loading…
Reference in New Issue
No description provided.
Delete Branch "guishe/blender:fix-mouse-drag-edit-factor"
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?
Drag editing numeric inputs tagged as
PROP_FACTOR
is performedas a slider, when the user start editing this numerical inputs
the
mouse is hidden
, the feedback that the user get is a slidethat fill the input.
However, when the
mouse
leave the input box, there is no morefeedback until the mouse enter again to the input box, this feels wrong
because the mouse is hidden, and there is no feedback that tells that
the mouse is outside the input box and need to be within.
This pr fixes the need of having the mouse withing the input box, instead
the slide is performed by mouse movement.
If the Continuous Grab preference is uncheck or if the user is using a tablet,
the slider will be exactly under the cursor whiting the input.
This video shows what happens when drag editing a numeric input tagged as factor, i made changes to see
the actual mouse position
, the value only changes when the mouse is within the input box (well, not at all, it seems a bit translated), but this feels wrong because themouse is normally hidden by a drag edit
Here the fix applied (
the value changes by movement
)In the second video a frame shows the input whit several decimals, wonder if its caused by the pr
This looks pretty reasonable to me
Makes sense. Better to have @ideasman42 's input since this is related to Continuous Grab.
I do like this behavior. It took me a bit to understand the difference, but once I saw it, it feels much nicer.
Codewise, I'd personally minimize some changes and make the change more obvious by doing something like the following. So keeps the new use_continuous_grab with the new code.
I'd also be a bit nervous about the removal of the "else" in
ui_numedit_but_SLI
. If there is something that is not UI_BTYPE_NUM_SLIDER or UI_BTYPE_SCROLL your "f" will be randomly 0 or 1.ui_numedit_but_SLI
is only used inui_do_but_SCROLL
andui_do_but_SLI
, and they are used only once inui_do_button
in a switch like:No worries if you are sure. When there is any doubt a good trick is to leave that last else but with only a
BLI_assert_unreachable();
inside.This PR seems to change behavior in ways that aren't ideal.
Without continuous grab (or when a tablet is used):
Changing the slider on the initial press wont work as a click is needed to edit the value.
I'd prefer if this PR only adjusts the behavior with continuous grab enabled, attached a diff that does this:
Seems fine, just checked my changes and they also introduces a regression to the UILits scroll sliders
Checkout
From your project repository, check out a new branch and test the changes.