This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Any way to set 2 finger trackpad gesture to just pan?

Tags: None
(comma "," separated)
prikab
Registered Member
Posts
4
Karma
0
I like using 2 finger scrolling on my macbook's touchpad. It's a pretty standard gesture, I can do it in browsers, pan in any random direction in graphics apps like Preview, Seashore, Pikopixel, etc. but when I do it in Krita it does this weird pan+zoom action. Is there any way to change 2 finger scrolling to just pan, not pan+zoom?
alvinwong
Registered Member
Posts
117
Karma
0
OS
It is supported in 4.0. A contributor (poke1024) added the support for it.
Though none of the other Krita devs have the ability to test it because nobody has the hardware which supports it.
prikab
Registered Member
Posts
4
Karma
0
super, what's the estimated timeframe for 4.0?

In lieu of the trackpad gesture working as expected, is there anyway to disable the pan+zoom action? I've messed around in the keyboard menu a few times but don't find it intuitive, so I may have missed something.
User avatar
TheraHedwig
KDE Developer
Posts
1794
Karma
10
OS
prikab wrote:super, what's the estimated timeframe for 4.0?

In lieu of the trackpad gesture working as expected, is there anyway to disable the pan+zoom action? I've messed around in the keyboard menu a few times but don't find it intuitive, so I may have missed something.

You'll need to modify settings->configure Krita->canvas input settings.
prikab
Registered Member
Posts
4
Karma
0
sweet, i was actually able to totally fix the issue. I can now pan around just like any other graphics app.

Krita > Preferences > Canvas Input Settings

go to the zoom canvas section and right click on any mouse wheel or gesture input types and delete them

go to the pan canvas section and delete everything there. create 4 new inputs of mouse wheel type, bind mouse wheel right to pan right...etc. After all 4 mouse wheel directions are bound the 2 finger scroll gesture works as expected!

The devs may want to modify the default canvas input profile for mac builds, or add another default profile that's specifically for macs w/trackpads. I was just about to quit Krita forever for this one reason and I'm sure i'm not alone.

minor ui bug: in the canvas input menu, on the bottom left the color selector settings icon looks like it's offset to the left by half a pixel, there is a tiny thin white line to it's right. mac os 10.9, krita 3.1.1 https://imgur.com/k5j5qSH

Last edited by prikab on Mon Mar 19, 2018 10:21 pm, edited 1 time in total.
User avatar
TheraHedwig
KDE Developer
Posts
1794
Karma
10
OS
Well, you could embrace the open source spirit and share a input profile that works great with trackpads? :D We don't have people who use trackpads on os x devices commonly, so we can't tell what are common conventions using the things. If you share one we could make sure it'll get installed on OS X by default :)

When you make a custom one, it is stored in the 'input' folder of the resources folder(settings->manage resources->open resource folder)
prikab
Registered Member
Posts
4
Karma
0
Here you go, I tried to do it in a way that caused as little change as possible, while making the trackpad scroll gesture work as expected.

Code: Select all

[Pan Canvas]
0={2;3;[];0;3;0}
1={1;3;[];0;4;0}
10={4;1;[];0;0;0}
2={3;3;[];0;2;0}
3={4;3;[];0;1;0}
4={0;4;[];0;0;2}
5={0;2;[20];1;0;0}
6={0;2;[];4;0;0}
7={1;1;[];0;0;0}
8={2;1;[];0;0;0}
9={3;1;[];0;0;0}

[Zoom Canvas]
0={2;1;[2b];0;0;0}
1={4;1;[31];0;0;0}
10={8;2;[1000021,1000023,20];1;0;0}
2={5;1;[32];0;0;0}
3={0;2;[];0;0;1}
4={8;2;[1000021,1000023];4;0;0}
5={3;1;[2d];0;0;0}
6={2;1;[3d];0;0;0}
7={7;2;[1000021];4;0;0}
8={7;2;[1000021,20];1;0;0}
9={6;1;[33];0;0;0}

alvinwong
Registered Member
Posts
117
Karma
0
OS
The thing is, Krita 4.0 actually has proper code to handle the native trackpad gestures, not relying on scroll events. And I think poke1024 already added it to the default input profile.

I don't know how macOS works with a conventional mouse with a scroll wheel, but if it does work like on other OSes, it would still make sense to keep the scroll wheel for zooming.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]