UI: Zooming out in any editor/area its a lot faster than zooming in (exept the 3D view) #73575

Closed
opened 2020-02-04 00:47:07 +01:00 by Nahuel Belich · 30 comments

System Information
Operating system: Linux-5.3.0-29-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 435.21

Blender Version
Broken: version: 2.83 (sub 2), branch: master, commit date: 2020-02-03 17:41, hash: 03a29090b5
Worked: never worked properly in 2.8x

Short description of error
Using Ctrl+MiddleMB we can zoom in and out in a lot of areas from editors to toolbars, however zooming out goes a lot faster than zooming in, for example the 3D view works fine but not the toolbars or properties shelf.
Sorry for the video but i don't have a better way to explain it

https://youtu.be/WYdW96oN7z0

Exact steps for others to reproduce the error
Try to Zoom in any toolbar or the properties editor using Ctrl+mmb and look carefully how much do you move the mouse up and down.

**System Information** Operating system: Linux-5.3.0-29-generic-x86_64-with-debian-buster-sid 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 435.21 **Blender Version** Broken: version: 2.83 (sub 2), branch: master, commit date: 2020-02-03 17:41, hash: `03a29090b5` Worked: never worked properly in 2.8x **Short description of error** Using Ctrl+MiddleMB we can zoom in and out in a lot of areas from editors to toolbars, however zooming out goes a lot faster than zooming in, for example the 3D view works fine but not the toolbars or properties shelf. Sorry for the video but i don't have a better way to explain it https://youtu.be/WYdW96oN7z0 **Exact steps for others to reproduce the error** Try to Zoom in any toolbar or the properties editor using Ctrl+mmb and look carefully how much do you move the mouse up and down.
Author

Added subscriber: @NahuelBelich

Added subscriber: @NahuelBelich

#84914 was marked as duplicate of this issue

#84914 was marked as duplicate of this issue

#69445 was marked as duplicate of this issue

#69445 was marked as duplicate of this issue

#73788 was marked as duplicate of this issue

#73788 was marked as duplicate of this issue
Nahuel Belich changed title from UI: Zooming out in any editor/are its a lot faster than zooming in to UI: Zooming out in any editor/area its a lot faster than zooming in (exept the 3D view) 2020-02-04 00:51:02 +01:00

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscriber: @Russ1642

Added subscriber: @Russ1642

Also there seems to be no way to reset the zoom for many editor panels

Also there seems to be no way to reset the zoom for many editor panels
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

In #73575#864643, @Russ1642 wrote:
Also there seems to be no way to reset the zoom for many editor panels

You should be able to reset the zoom with Home

> In #73575#864643, @Russ1642 wrote: > Also there seems to be no way to reset the zoom for many editor panels You should be able to reset the zoom with `Home`
Member

Added subscriber: @kursadk

Added subscriber: @kursadk
Member

Changing the zoom axis from vertical to horizontal helps but that is not as comfortable in the 3d viewport.

Changing the zoom axis from vertical to horizontal helps but that is not as comfortable in the 3d viewport.

Added subscriber: @ThinkingPolygons

Added subscriber: @ThinkingPolygons

Added subscriber: @jenkm

Added subscriber: @jenkm

This issues depends on the aspect ratio of the editor, so if you have a square view, the zoom in and out is quite uniform.
But if the view is rectangular then zoom in is much slower than out.

I tried this quick hack and it solved the issues:

lines=10
diff --git a/source/blender/editors/interface/view2d_ops.c b/source/blender/editors/interface/view2d_ops.c
index 5cf7cb4e7c4..88b488087c1 100644
--- a/source/blender/editors/interface/view2d_ops.c
+++ b/source/blender/editors/interface/view2d_ops.c
@@ -1081,11 +1081,13 @@ static int view_zoomdrag_invoke(bContext *C, wmOperator *op, const wmEvent *even
     /* support trackpad zoom to always zoom entirely - the v2d code uses portrait or
      * landscape exceptions */
     if (v2d->keepzoom & V2D_KEEPASPECT) {
+      const float ratio = BLI_rctf_size_x(&v2d->cur) / BLI_rctf_size_y(&v2d->cur);
+
       if (fabsf(dx) > fabsf(dy)) {
-        dy = dx;
+        dy = dx / ratio;
       }
       else {
-        dx = dy;
+        dx = dy * ratio;
       }
     }
     RNA_float_set(op->ptr, "deltax", dx);
@@ -1214,11 +1216,13 @@ static int view_zoomdrag_modal(bContext *C, wmOperator *op, const wmEvent *event
     /* support zoom to always zoom entirely - the v2d code uses portrait or
      * landscape exceptions */
     if (v2d->keepzoom & V2D_KEEPASPECT) {
+      float ratio = BLI_rctf_size_x(&v2d->cur) / BLI_rctf_size_y(&v2d->cur);
+
       if (fabsf(dx) > fabsf(dy)) {
-        dy = dx;
+        dy = dx / ratio;
       }
       else {
-        dx = dy;
+        dx = dy * ratio;
       }
     }

However MOUSEZOOM (trackpad pinch) is very slow.

This issues depends on the aspect ratio of the editor, so if you have a square view, the zoom in and out is quite uniform. But if the view is rectangular then zoom in is much slower than out. I tried this quick hack and it solved the issues: ``` lines=10 diff --git a/source/blender/editors/interface/view2d_ops.c b/source/blender/editors/interface/view2d_ops.c index 5cf7cb4e7c4..88b488087c1 100644 --- a/source/blender/editors/interface/view2d_ops.c +++ b/source/blender/editors/interface/view2d_ops.c @@ -1081,11 +1081,13 @@ static int view_zoomdrag_invoke(bContext *C, wmOperator *op, const wmEvent *even /* support trackpad zoom to always zoom entirely - the v2d code uses portrait or * landscape exceptions */ if (v2d->keepzoom & V2D_KEEPASPECT) { + const float ratio = BLI_rctf_size_x(&v2d->cur) / BLI_rctf_size_y(&v2d->cur); + if (fabsf(dx) > fabsf(dy)) { - dy = dx; + dy = dx / ratio; } else { - dx = dy; + dx = dy * ratio; } } RNA_float_set(op->ptr, "deltax", dx); @@ -1214,11 +1216,13 @@ static int view_zoomdrag_modal(bContext *C, wmOperator *op, const wmEvent *event /* support zoom to always zoom entirely - the v2d code uses portrait or * landscape exceptions */ if (v2d->keepzoom & V2D_KEEPASPECT) { + float ratio = BLI_rctf_size_x(&v2d->cur) / BLI_rctf_size_y(&v2d->cur); + if (fabsf(dx) > fabsf(dy)) { - dy = dx; + dy = dx / ratio; } else { - dx = dy; + dx = dy * ratio; } } ``` However `MOUSEZOOM` (trackpad pinch) is very slow.

Added subscriber: @Miro-Virta

Added subscriber: @Miro-Virta

Related to this issue, zooming in and out in the Cycles node editor is really slow with pinch gesture on a Mac trackpad. Zooming in is painfully slow and zooming out is somewhat okay, but could still be way faster without being uncontrollably fast.

Related to this issue, zooming in and out in the Cycles node editor is really slow with pinch gesture on a Mac trackpad. Zooming in is painfully slow and zooming out is somewhat okay, but could still be way faster without being uncontrollably fast.

Added subscriber: @Anonymous4786

Added subscriber: @Anonymous4786

Hi , I am new to blender devlopment and want to contribute . So , I would like to solve this issue .So can somebody please provide me with some more information about the issue.

Thank You

Hi , I am new to blender devlopment and want to contribute . So , I would like to solve this issue .So can somebody please provide me with some more information about the issue. Thank You
Yevgeny Makarov self-assigned this 2020-08-09 11:16:57 +02:00

Added subscribers: @SecuoyaEx, @iss

Added subscribers: @SecuoyaEx, @iss

Removed subscriber: @SecuoyaEx

Removed subscriber: @SecuoyaEx

This issue was referenced by a73dfac519

This issue was referenced by a73dfac5195681ad1deec55c317484ad077dafc4

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'

Added subscriber: @JoelArt

Added subscriber: @JoelArt

Changed status from 'Resolved' to: 'Archived'

Changed status from 'Resolved' to: 'Archived'

The issue still persist in 2.9 (portable version) https://developer.blender.org/T84914

@robert-18 Guetzkow (rjg)
@Campbell Barton (campbellbarton)
It's not resolved and has to be reopened for fixing again.

The issue still persist in 2.9 (portable version) https://developer.blender.org/T84914 @robert-18 Guetzkow (rjg) @Campbell Barton (campbellbarton) It's not resolved and has to be reopened for fixing again.

Added subscriber: @robert-18

Added subscriber: @robert-18

@robert-18 Kirberich (robert) Guetzkow (rjg) please reopen this task, the bug still remains in 2.91 Portable.

@robert-18 Kirberich (robert) Guetzkow (rjg) please reopen this task, the bug still remains in 2.91 Portable.

Added subscriber: @rjg

Added subscriber: @rjg

@JoelArt You would need to test the current version under development, daily build of version 2.93 , that includes the patch. If the problem still occurs in that version, please create a new bug report.

Tagging on this platforms works by using @ followed by the username. So to notify me you would type @rjg.

@JoelArt You would need to test the current version under development, [daily build of version 2.93 ](https://builder.blender.org/download/), that includes the patch. If the problem still occurs in that version, please create a new bug report. Tagging on this platforms works by using `@` followed by the username. So to notify me you would type `@rjg`.

Changed status from 'Archived' to: 'Resolved'

Changed status from 'Archived' to: 'Resolved'
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
12 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#73575
No description provided.