Skip to content

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

Open
@elvisisvan

Description

@elvisisvan

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions