Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
elvisisvan opened this issue Mar 14, 2023 · 0 comments
Open

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

elvisisvan opened this issue Mar 14, 2023 · 0 comments

Comments

@elvisisvan
Copy link

elvisisvan commented Mar 14, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant