ToucheggKDE icon indicating copy to clipboard operation
ToucheggKDE copied to clipboard

2-finger pinch to zoom content, not the page

Open elvisisvan opened this issue 1 year ago • 0 comments

the original configurations is this:

  <!--
    Configuration for specific applications.
  -->
  <application name="Google-chrome,Chromium,Firefox,Brave-browser,brave-browser">
    <gesture type="PINCH" fingers="2" direction="IN">
      <action type="SEND_KEYS">
        <repeat>true</repeat>
        <modifiers>Control_L</modifiers>
        <keys>KP_Subtract</keys>
        <decreaseKeys>KP_Add</decreaseKeys>
      </action>
    </gesture>

    <gesture type="PINCH" fingers="2" direction="OUT">
      <action type="SEND_KEYS">
        <repeat>true</repeat>
        <modifiers>Control_L</modifiers>
        <keys>KP_Add</keys>
        <decreaseKeys>KP_Subtract</decreaseKeys>
      </action>
    </gesture>

which will adjust page zoom from default 100%: image to 110%, 125%, 150%, 200%, etc. : image and it's repeatable because ctrl + -/+ shortcut already perform that action, so how can we make 2-finger pinch zoom in a specific position where the cursor is? (just like on windows)

elvisisvan avatar Mar 14 '23 07:03 elvisisvan