Bug 194922

Summary: Zoom in-out when CTRL-Mousewheel
Product: [Applications] kate Reporter: Pascal d'Hermilly <pascal>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: draciron, jetdog330, jonas743, rlerallut
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Unspecified   
Latest Commit: Version Fixed In: 4.8.0

Description Pascal d'Hermilly 2009-06-01 22:24:01 UTC
Version:            (using KDE 4.2.3)
Installed from:    Ubuntu Packages

It would be very nice if Kate would zoom in and out when holding ctrl and scrolling with mouse wheel.
This seems the be the expected feature for this key combination since it is used in many other applications such as browsers, office programs and image editing programs.
Comment 1 Pascal d'Hermilly 2009-06-01 22:24:57 UTC
What I mean with zoom is of course make the text larger or smaller :-)
Comment 2 Romain 2010-09-17 13:40:36 UTC
Probably should be merged with https://bugs.kde.org/show_bug.cgi?id=196573
Comment 3 Dominik Haumann 2011-09-11 10:02:59 UTC
*** Bug 263951 has been marked as a duplicate of this bug. ***
Comment 4 Dominik Haumann 2011-09-11 10:14:43 UTC
Fixed with commit http://commits.kde.org/kate/0664398bfe276e6a721a66ef83e43ed31c92884b
Comment 5 Jonas 2014-12-14 12:42:01 UTC
Is there a way to disable this? It can be disturbing when triggered inadvertently with the touchpad on a laptop. (I'm using kile)
Comment 6 Draciron 2015-10-22 07:17:11 UTC
How do you turn zoom with mouse wheel off? I RARELY need to zoom text, but scroll with the mouse wheel all the time. It's driving me nuts that Kate now zooms with mouse middle button instead of scrolling.
Comment 7 Pascal d'Hermilly 2015-10-22 10:42:04 UTC
@Draciron why do you hold down the CTRL key when you scroll?
You will get the same behaviour in almost all other programs, such as a browser, dolphin, libreoffice.
When you are holding down the Control key you can expect to get a different behaviour.
Comment 8 Dave Andrews 2016-02-20 06:40:48 UTC
@Pascal
(In reply to Pascal d'Hermilly from comment #7)
> @Draciron why do you hold down the CTRL key when you scroll?
> You will get the same behaviour in almost all other programs, such as a
> browser, dolphin, libreoffice.
> When you are holding down the Control key you can expect to get a different
> behaviour.

The issue is that mouse interactions are often unreliable on touch-input devices -- especially in more complicated KDE apps that are based on Kate.

Right now I just pulled the latest version of KDevelop, which makes heavy use of the Ctrl+ modifier during mouse operations (particularly when ctrl+clicking on variables to follow them!)

On touch-input devices, when trying to do precision touch events -- scrolling is often applied incorrectly when:

 -Performing precision single-finger gestures.
 -Moving into the edge regions of touchpads.
 -Dirty, Abused, or Disfunctional touchpads.
 -Owning a larger touch pad (i.e. gaming laptops / touch devices)

The problem is compounded with synthetic touchpad driver events (someone trying to workaround this here -> https://git.reviewboard.kde.org/r/120319/), which give the gesture acceleration + deceleration long after the user tries to stop the incorrect input.  This leads to having your Kate/KDevelop document look like anything from the size of a breadcrumb -- to the size of Texas! =)

You're right that this deserves a central way of controlling this for editor zooming, but in the absence of that, I'm going to have to patch this out of my machine's kate binaries while using an otherwise perfect editor -- because it's incredibly hard to use on touch devices without this!
Comment 9 Pascal d'Hermilly 2016-02-22 08:04:21 UTC
> Right now I just pulled the latest version of KDevelop, which makes heavy
> use of the Ctrl+ modifier during mouse operations (particularly when
> ctrl+clicking on variables to follow them!)

I don't see that Kate-part has to have the same key bindings as Kate, thus if the KDevelop developers think there is a problem and they want Kate-part to stop zooming with ctrl + scroll, I'm sure that they can find a solution together with the kate developers.
Since there hasn't been an uprising perhaps some of the kdevelop developers like the zoom function.