Configure Touch Gestures for Zoom and Pan in GIMP

Configuring touch gestures in GIMP allows you to smoothly pan across and zoom into your canvas using touchscreens, drawing tablets, or precision touchpads. This guide provides a direct, step-by-step walkthrough to enable touch device recognition, configure input controllers, and map touch actions to canvas navigation in GIMP.

Step 1: Enable Your Touch Device

Before setting up gestures, ensure GIMP detects your touchscreen or touchpad as an active input device:

  1. Open GIMP and navigate to Edit > Preferences (on macOS, GIMP > Preferences).
  2. In the left sidebar, expand Input Devices and click on Configure Extended Input Devices.
  3. Locate your touchscreen, touchpad, or tablet device in the device list.
  4. Change the Mode dropdown from Disabled to Screen.
  5. Click Save and then Close.

Step 2: Configure Input Controllers for Gestures

To map specific gesture behaviors—such as two-finger scrolling or pinch gestures—to zoom and pan functions:

  1. Go to Edit > Preferences > Input Devices > Input Controllers.
  2. Under the Active Controllers column on the right, ensure that your primary controller (such as Main Mouse Wheel or DirectX DirectInput on Windows) is active. If not, select it from the Available Controllers column and click the right arrow button to activate it.
  3. Double-click the active controller to open the event configuration window.
  4. Scroll through the list of events to find gesture and scroll actions:
    • Scroll Up / Scroll Down: Assign to View > Zoom In / Zoom Out.
    • Scroll Left / Scroll Right: Assign to View > Scroll Left / Scroll Right.
    • Ctrl + Scroll: Assign to View > Zoom In / Zoom Out if you prefer standard modifier-key behavior.
  5. To assign an action, double-click the event, search for the corresponding navigation command (such as view-zoom-in or view-scroll-up), select it, and click OK.
  6. Click OK in the Preferences dialog to save your settings.

Step 3: Configure Canvas Modifiers and Interaction

You can adjust how touch inputs interact directly with the canvas space:

  1. In the Preferences dialog, select Canvas Interaction (or Image Windows > Mouse Pointers in some versions).
  2. Under the modifiers section, adjust the default behavior for panning and zooming. By default:
    • Space + Touch Drag: Pans (moves) the canvas view.
    • Ctrl + Two-Finger Drag / Wheel: Zooms in and out.
    • Shift + Two-Finger Drag / Wheel: Scrolls horizontally.
  3. Enable or disable smooth scrolling options according to your hardware preference.

Step 4: Verify Operating System Touch Settings

GIMP relies on your operating system's native drivers to interpret multi-touch gestures:

  • Windows: Open Settings > Bluetooth & devices > Touchpad (or Touch). Ensure multi-finger gestures and pinch-to-zoom are enabled.
  • macOS: Open System Settings > Trackpad and ensure Smart zoom, Pinch to zoom, and Scroll & Zoom directions are toggled on.
  • Linux: Ensure your Wayland or X11 session has libinput or xf86-input-synaptics configured for multi-touch gesture support.