NayamAmarshe / ToucheggKDE

TouchEgg configuration for MacOS and Windows like Touchpad Multi-Touch Gestures on KDE Plasma.
359 stars 22 forks source link

2-finger pinch to zoom content, not the page #15

Open elvisisvan opened 1 year ago

elvisisvan commented 1 year ago

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)