Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Pointer gestures: a survey, and profiles instead of one rule

Status: design note, decided (study 2026-10-20; decisions 2026-10-20 and 2026-10-21, at the end). Section 7 keeps the questions as they were asked. It answers issue #47 (“Canvases: one rule for the mouse wheel and the middle button”) and its follow-up, which widened the scope to every pointer button, the modifier keys, trackpads, and the keymap.

The issue starts from one inconsistency (the image viewport zooms with the wheel, the node graph pans with it). The answer proposed here is not one fixed rule but profiles: named presets a user picks (“darktable”, “Adobe”, “Document”, “Blender / node editors”, “Trackpad”), stored as a layer of the keymap, with per-gesture overrides on top. Helios defaults to the darktable profile, because Helios users come from darktable.

Contents:

  1. What egui-pop does today
  2. How egui delivers the pointer
  3. The survey: two comparison tables
  4. darktable in detail
  5. Conflicts and platform constraints
  6. Proposed profiles, storage and overrides
  7. Open questions
  8. References

Conventions: “wheel” is a mouse wheel notch (MouseWheelUnit::Line); “two-finger scroll” is a trackpad’s smooth scroll (Point); “Ctrl” means Cmd on macOS wherever egui’s Modifiers::command applies (section 5). Left/right are the logical primary/secondary buttons: a left-handed setup swaps them in the OS and the app never sees it.


1. What egui-pop does today

Paths are relative to the repository; egui 0.36.2.

Canvas / widgetWheelShift + wheelCtrl + wheel / pinchLeft dragMiddle dragRight click / dragDouble click
Image viewport (viewport/src/widget.rs, Gestures)zooms at the pointer; stops once at 100 %pans (egui moved the delta to x)zooms (zoom_delta branch)pans on free canvas, moves a handle on a handlepans anywherenothingfit (DoubleClick::Fit); resets a handle
Node graph (viewport/src/graph/mod.rs, egui Scene)panspans horizontallyzooms at the pointerrubber band (Shift/Ctrl add); moves nodes; draws wirespansclick: menus (canvas, node, port); drag: pansfits; collapses a node from its title
Graph minimap (graph/minimap.rs)zooms (does not consume the scroll)pans (any button)panspansfits
Image navigator (viewport/src/navigator.rs)steps the zoom ladder (sign of the raw event)moves the framefits
Library compare (views/src/library/compare.rs)scrolls the parentzooms at the pointerpans (any button)panspansresets
Library grid (views/src/library/grid.rs)scrollsthumbnail sizerubber bandactivates
Curve editor (viewport/src/curve.rs)nothingmoves a point (Ctrl finer, Shift coarser); adds on the curvedeletes a pointdeletes a point; resets elsewhere
Colour wheels, histogramnothingrelative drag (Ctrl finer, Shift coarser)resets
Sliders (core/src/slider.rs, slider::Gestures)scrolls the panel; steps the value only if focused or Alt heldrelative drag (Ctrl finer, Shift coarser), any buttondragsdragsresets
Lists, tree, table (views/src/select.rs)scrollsdrag and dropcontext menu (tree)opens a branch / activates

Also: Space + drag pans the viewport and the graph; Escape cancels a drag; Gestures (viewport) and slider::Gestures live in context slots meant for “input profiles”, but nothing sets them, nothing persists them, and the settings window has no input section. The keymap (model/src/keymap.rs, ADR 0007) knows keys only: Chord { ctrl, alt, shift, meta, key }. No code reads MouseWheelUnit, touch events, pen pressure or tilt.

Inconsistencies a user meets:

  • the plain wheel zooms (viewport, minimap), steps (navigator), pans (graph) or scrolls (library, sliders);
  • the right button pans in the graph and the compare panes, deletes a point in the curve editor, opens a menu elsewhere, and does nothing on the viewport;
  • some drags accept any button (minimap, compare, sliders), others one;
  • the docs disagree: the graph page says Shift or Ctrl “adds”, the code toggles; lists say Ctrl toggles and Shift extends a range;
  • the viewport’s “other wheel action” modifier is Shift while the rest of egui uses Ctrl for zoom.

2. How egui delivers the pointer

Read from egui 0.36.2 input_state/mod.rs and wheel_state.rs:

  • InputOptions defaults: zoom_modifier = COMMAND, horizontal_scroll_modifier = SHIFT, vertical_scroll_modifier = ALT, line_scroll_speed 40 points native and 8 on the web, scroll_zoom_speed 1/200.
  • Units are normalised early: Line × line_scroll_speed, Page × the viewport height, Point as is. After that, smooth_scroll_delta no longer says whether a wheel or a trackpad produced it.
  • With the zoom modifier held, the wheel goes into zoom_delta and smooth_scroll_delta stays zero. zoom_delta() returns the multi-touch pinch when there is one, else that factor: a pinch and Ctrl + wheel look the same at that level.
  • Shift moves the whole delta to x; Alt forces it to y.
  • Scene pans with smooth_scroll_delta and zooms with zoom_delta; its drag_pan_buttons default to all buttons.

Consequence: a profile cannot be implemented on top of smooth_scroll_delta/zoom_delta. The canvases have to read the raw Event::MouseWheel { unit, delta, modifiers } and Event::Zoom (pinch) themselves, or the app sets InputOptions from the profile (zoom_modifier, the two scroll modifiers) so egui’s conversion agrees with it. The first is more precise (it keeps the line/point split); the second keeps plain egui widgets (ScrollArea) consistent. Probably both: InputOptions follow the profile for generic scrolling, and canvases read raw events.

On the web, browsers deliver a trackpad pinch as a wheel event with ctrlKey = true (Chrome, Firefox; Safari also has its own gesture events), so on the web a pinch and Ctrl + wheel are indistinguishable even in raw events, except by unit (a pinch has pixel deltas, a wheel notch usually line deltas, depending on the browser).

3. The survey

Sources are cited by key; the keys are in section 8. “—” means nothing documented; “(s)” marks a secondary source (forum, blog, source code) where official docs are silent. darktable cells cite source files, see section 4.

3.1 Photo and painting applications

GesturedarktableLightroom ClassicCapture OnePhotoshopGIMP 3Krita (default profile)Affinity Photo 2RawTherapee
Wheel on the imagezooms at the pointer, soft stops at fit/100 % [DT-zoom]— (zoom is click/Space) [LR1]zooms in steps (preference) [C1a]scrolls vertically; zooms with “Zoom with Scroll Wheel” [PS1]scrolls vertically [GI1]zooms at the pointer [KR2]scrolls vertically [AF1]zooms at the pointer (s) [RT3]
Shift + wheelon a mask: feather / hardness / compression [DT-masks]———scrolls horizontally [GI1]—scrolls horizontally [AF1]—
Ctrl + wheelzooms past the soft stops [DT-zoom]; on a mask: opacityzooms (s) [LR6]—scrolls horizontally (s) [PS2]zooms [GI2]—rotates the canvas (preference) [AF3]resizes a colour picker (s) [RT3]
Alt + wheel(colour zones: next channel)—scrolls the tool panel when wheel-on-slider is on [C1b]zooms (s) [PS2]tool opacity (Ctrl+Alt: size…) [GI3]—zooms [AF2]—
Middle drag————pans [GI4]pans; Ctrl: zoom; Shift: rotate [KR1]——
Middle clickcycles 100 % → 200 % → fit at the pointer [DT-mid]———(GTK: paste)———
Left drag on free canvaspans [DT-drag]pans once zoomed; hold-to-zoom [LR1]pans with the Pan cursor [C1a]tooltooltooltoolpans with the hand tool [RT2]
Shift + left dragcrop: vertical only; path: Bezier one handleDevelop: scrubby zoom (s) [LR2]—adds to a selection; constrains [PS3]adds (before); square (after) [GI5]brush size [KR2]constrains to 0/45/90° [AF1]pans/scales the crop [RT2]
Ctrl + left dragcrop: horizontal only; ellipse/brush: rotateszoom to a box (s) [LR2]—(Move: toggles auto-select)subtracts (before); from centre (after) [GI5]samples colour [KR2]corner: scales from centre [AF1]curves: fine (s) [RT2]
Alt + left drag(ellipse: proportional feather on click)brush: erase; crop: from centre [LR3]—moves a copy; subtracts a selection [PS3]moves the outline [GI5]—subtracts a selection [AF1]—
Space + drag—(Space toggles zoom) [LR1]pans [C1a]pans [PS3]pans (preference) [GI6]pans [KR1]pans [AF4]—
Double click on the imageback to the lighttable [DT-dbl]Loupe ↔ Grid (s) [LR2]Pan cursor: 100 % ↔ fit [C1a](on the Hand tool icon: fit) [PS3]——(on the View tool icon: fit) [AF2]—
Right click on the imagestraighten (draw the horizon) [DT-right]context menufloating navigator [C1a]context menu [PS3]image menu [GI1]pop-up palette [KR1]context menu [AF3]back to the default cursor [RT2]
Two-finger scrollpans [DT-tp]—pans (since 22, s) [C1c]pans (macOS gestures) [PS1]scrollspans (macOS, Wayland) [KR2]pans [AF5]—
Pinchzooms [DT-tp]—zooms (s) [C1c]zooms [PS1]zooms or rotates (s) [GI7]zooms and rotates (touch) [KR2]zooms; two-finger double tap: 100 % [AF5]—
Wheel over a sliderchanges the value (Ctrl fine, Shift coarse); Ctrl+Alt scrolls the panel; preference swaps [DT-slider]—changes it if the preference is on; Alt scrolls [C1b]steps a focused field (s) [PS4]———scrolls the panel; Shift + wheel changes the value [RT1]
Drag a sliderabsolute; any modifier: relative, Ctrl fine, Shift coarse [DT-slider]Shift finer (s) [LR4]; colour wheels: Alt fine [LR5]—scrubby label: Shift ×10 [PS5], Alt ÷10 (s) [PS4] [PS6]Shift or right: fine; Ctrl: coarse [GI3]Shift fine (relative), Ctrl snaps [KR3]scrubby label [AF1]hold still: fine [RT1]
Right click on a sliderfine-tune popup, type a value [DT-slider]———text edit, value selected [GI3]text entry [KR3]context menu—
Double click on a sliderresets [DT-slider]on the name: resets [LR3]resets [C1d]——text entry [KR3]—(reset button) [RT2]
Thumbnail grid: Ctrl / Shift clicktoggles / range [DT-lt]toggles / range [LR3]adds / range [C1e]—————
Thumbnail grid: Ctrl + wheelthumbnails per row [DT-lt]———————

3.2 Node editors, design tools and 3D

GestureBlender 3D viewportBlender node editors / 2DUnreal BlueprintUnity Shader GraphComfyUI (default “Drag Navigation”)FigmaInkscape 1.x
Wheelzooms [BL1]zooms [BL2]zooms [UE1]zooms [UN1]zooms (“Standard” mode: pans) [CU1]pans vertically; zooms with “Use scroll wheel zoom” [FI1]scrolls vertically [IN1]
Shift + wheelpans vertically [BL1]pans vertically (s)———pans horizontally [FI1]scrolls horizontally [IN1]
Ctrl + wheel—pans horizontally (s); over a field: steps the value [BL5]zooms past 1:1 [UE1]——zooms [FI1]zooms [IN1]
Alt + wheel——————Selector: cycles stacked objects [IN1]
Middle dragorbits; Shift: pans; Ctrl: zooms [BL1]pans; Ctrl: zooms [BL2]———— (feature request)pans; Shift: zoom box; Ctrl: rotates [IN1]
Middle click——————zooms in; Shift: out [IN1]
Left drag on empty canvasselect box (left-click select) [BL3]box select; Ctrl+Alt: lasso [BL4]marquee [UE1]marquee [UN1]pans (“Standard”: selects) [CU1]marquee [FI2]rubber band [IN1]
Shift + left click / dragextends the selectionadds [BL4]adds [UE1]—adds [CU2]toggles [FI2]toggles / adds [IN1]
Ctrl + left click / drag——toggles / removes [UE1]—adds [CU2]; Ctrl+Shift drag: fast zoom [CU1]deep select [FI2]selects in groups; constrains a move [IN1]
Alt + left drag(Industry Compatible: orbits) [BL6]detaches links [BL4]Alt+click a pin: breaks links [UE1]pans [UN1]—duplicates (s) [FI3]touch select [IN1]
Space + drag———(Space: create node) [UN2]pans [CU2]pans [FI1]pans (preference) [IN1]
Right clickcontext menu (left-click select) [BL3]context menucontext menu [UE1]menu [UN1]menucontext menu [FI2]context menu; Ctrl: zoom in [IN1]
Right drag—Ctrl: cuts links; Ctrl+Alt: mutes [BL4]pans [UE1]——pans (preference) [FI1]Shift/Ctrl: pans [IN1]
Double click on canvas——goes to the node’s target [UE1]—opens node search [CU2]enters a child [FI2]edits / enters a group [IN1]
Two-finger scrollorbits; Shift: pans; Ctrl: zooms [BL7]pans——pans [CU1]pans [FI1]scrolls
Pinch—zooms——zooms [CU1]zooms [FI1]zooms [IN2]
Wheel over a valueCtrl + wheel steps [BL5]same————only after a click into the field; Ctrl: larger steps [IN2]
Presets offeredkeymaps: Blender, 2.7x, Industry Compatible; Emulate 3 Button Mouse [BL6]same—Shortcuts Manager [UN2]Navigation Mode: Standard / Drag / Custom [CU1]two checkboxes [FI1]one toggle (removed in 1.1) [IN3]

3.3 Patterns

  • The plain wheel zooms in darktable, Krita, Capture One, RawTherapee, Blender, Unreal, Unity and ComfyUI’s default; it scrolls in Photoshop, Affinity, GIMP, Inkscape, Figma (document tools, which inherit the browser’s page model). Those move zoom to a modifier: Ctrl (GIMP, Inkscape, Figma) or Alt (Photoshop, Affinity).
  • Almost every app has a toggle for it (Photoshop, Affinity, Figma, Capture One, ComfyUI). The richer ones ship presets: Blender keymaps, Krita input profiles named after rival apps, ComfyUI navigation modes; GIMP 3 has a button × modifier table and maps every wheel × modifier pair to any action.
  • Space + drag pans nearly everywhere except Blender, Unreal, Unity (Space opens menus there) and Lightroom (Space toggles zoom).
  • Middle drag pans in GIMP, Krita, Inkscape, Blender (orbits in 3D) and egui-pop; the Adobe tools and Capture One do not document it. On Linux, GTK binds the middle click to paste.
  • The right button opens a context menu almost everywhere; the exceptions are useful: Unreal pans with a right drag, Figma can, Krita opens a palette, darktable straightens the horizon.
  • A left drag on empty canvas is a marquee in design and node tools and pans in photo viewers (darktable, Lightroom zoomed, ComfyUI’s default). Shift adds almost everywhere; Ctrl toggles or subtracts; Alt duplicates in design tools.
  • Wheel over a value is guarded in most apps (RawTherapee needs Shift, Inkscape a focus, Blender Ctrl, Capture One a preference). darktable is the exception that changes values on a plain wheel, with a preference to swap, and its users rely on it.
  • Fine and coarse: Ctrl fine / Shift coarse (darktable, egui-pop today), Shift fine / Ctrl snap (Blender, Krita), Shift coarse / Alt fine (Photoshop scrubby labels, Adobe’s arrow keys, Lightroom’s colour wheels). No consensus: it belongs to the profile.
  • Trackpads: two fingers pan and a pinch zooms everywhere except Blender’s 3D view (two fingers orbit).

4. darktable in detail

darktable is Helios’s reference. Read from darktable master as of 2026-10-11 (commit 6271f5378; most files cited are unchanged in the Helios fork). Line numbers drift; the function names are the stable reference. Paths are under src/.

4.1 Mouse gestures in the shortcut system

gui/accelerators.c binds mouse moves together with keys: a dt_shortcut_t (accelerators.c:36) holds a key and modifiers, a button bit mask (left, middle, right), a click kind (long, double, triple), a move (dt_shortcut_move_t in accelerators.h:116: scroll, pan = horizontal wheel, horizontal / vertical / diagonal / skew drag) with a direction, and a speed. In dt_shortcut_dispatcher (accelerators.c:4948):

  • with no ordinary key held, mouse events go straight to the widget under the pointer; Ctrl + wheel or Shift + drag alone are never shortcuts. Mouse shortcuts are “hold a key, then scroll, drag or click” (e.g. hold a key and scroll to change a slider anywhere);
  • while a key is held, the wheel becomes MOVE_SCROLL/MOVE_PAN unit steps (dt_gui_get_scroll_unit_deltas), the pointer becomes a move every 10 px whose kind follows the angle, buttons become the bit mask with double/triple/long clicks; tablet buttons above 7 are a separate device.

Fallbacks give extra modifiers and buttons a default meaning for a whole class of actions (_action_fallbacks_value, accelerators.c:458; slider fallbacks bauhaus.c:4516): Ctrl ×0.1, Shift ×10, left double click = reset, Ctrl+Shift = beyond the soft limits, right button + vertical move = zoom the slider’s range. They are off by default (accel/enable_fallbacks).

Speed: dt_accel_get_speed_multiplier (accelerators.c:5634) applies darkroom/ui/scale_step_multiplier (1), scale_rough_step_multiplier (10, Shift) and scale_precise_step_multiplier (0.1, Ctrl) to every wheel or drag step on a widget, so Ctrl is fine and Shift coarse across darktable.

Editing: the visual mapping mode (libs/tools/global_toolbox.c, _main_do_event_keymap) binds by doing: hover a widget, press a key or key + button, or scroll while holding a key. The wheel over a widget in that mode changes the shortcut’s speed, a middle click reverses its direction. Shortcuts are saved as text tokens (left, middle, right, double, long, move names). Conflicts are resolved at insertion (_insert_shortcut, accelerators.c:1500): the dialog lists clashing shortcuts across the views the action belongs to and asks to remove them; an identical one offers to remove or disable a default.

4.2 Sliders, comboboxes and the side panel (bauhaus)

  • Wheel (_widget_scroll, bauhaus/bauhaus.c:3427): steps the slider (_slider_add_step: linear step × multiplier; log sliders multiply), toggles a toggle, moves a combobox to the next entry. Ctrl+Shift crosses the soft limits; in the outer 10 % of the slider, Ctrl+Shift+wheel zooms the slider’s visible range.
  • Panel or value: preference darkroom/ui/sidebar_scroll_default (“mouse wheel scrolls modules side panel by default”, default off): off, the wheel changes the control under the pointer and Ctrl+Alt + wheel scrolls the panel; on, the reverse (gui/gtk.c, _dt_gui_ignore_scroll and _scroll_sidebar).
  • Left click / drag (_widget_button_press, _widget_motion): a click in the bar jumps to the pointer and the drag is absolute; with any modifier the drag is relative and fine/coarse.
  • Left double click resets to the default; Ctrl + double click reapplies the module’s auto-presets.
  • Right click opens the fine-tune popup: the further the pointer is from the line, the finer the drag; typing digits enters a value; the wheel zooms the range; a middle click resets the zoom.
  • Middle click toggles the soft and the hard range.
  • Notebook tabs: the wheel switches tab; a double click on a tab resets every slider on it. Module groups: the wheel cycles groups; right click opens the manager. Module header: left click expands (Shift inverts “single module”), Ctrl+click renames the instance, right click opens presets, a drag reorders the pipe.

4.3 Darkroom image

Events go first to the colour picker, then the masks, then the focused module, and only then to the view (views/darkroom.c, button_pressed, mouse_moved, scrolled). Holding A bypasses masks and modules (“force pan/zoom/rotate with mouse”).

  • Wheel zooms anchored on the pointer (dt_dev_zoom_move(DT_ZOOM_SCROLL), anchoring in develop/develop.c _dev_zoom_move): ×1.1 per notch below 200 %, ×2 above; fit, 100 % and 200 % are stops; with darkroom/ui/constrain_zoom (on) the zoom stays between fit and 100 %; Ctrl + wheel lifts the stops and limits. Shift and Alt have no zoom meaning (masks and modules see them first).
  • Left drag on free image pans; while a mask or module drags, the view only auto-pans past the border.
  • Left double click (not taken by a mask or module) returns to the lighttable.
  • Middle click zooms at the pointer: 100 % → 200 % → fit with darkroom/mouse/middle_button_cycle_zoom_to_200_percent (on), fit ↔ 100 % otherwise; Ctrl + middle forces the 200 % step.
  • Right drag draws a horizon line handed to the rotate and perspective module (dev->proxy.rotate); masks consume right clicks.
  • Touchpad (darkroom/ui/touchpad_gestures, on; dt_gui_scroll_should_pan in gui/gtk.c): a smooth scroll from a touchpad pans instead of zooming, unless Ctrl is held; a pinch zooms (GtkGestureZoom); a touchscreen one-finger drag is a mouse move. Smooth deltas are attenuated (_scroll_proxy_real), wheel notches are not.
  • Pen: pressure is read for pen devices and used by the brush mask (pressure_sensitivity, brush_smoothing); tilt is not used.
  • No left-handed, natural-scrolling or inverted-wheel option: darktable leaves those to the OS, except masks_scroll_down_increases.
  • Navigation minimap (libs/navigation.c): left or right drag centres the view, middle click runs the zoom cycle, the wheel zooms at the mapped point (Ctrl lifts the limits), touchpad pans, pinch zooms.

4.4 Masks and on-image tools

The wheel and its modifiers change what is adjusted (not only how finely) on a hovered or selected shape (develop/masks/*.c, size step ×0.97):

ShapeWheelShift + wheelCtrl + wheelCtrl+Shift + wheelClicks and drags
Circlesizefeatheropacitydrag moves; Shift(+Ctrl)+click while creating places the clone source; right click deletes
EllipseradiifeatheropacityrotationAlt+click proportional feather; Ctrl+drag rotates
Brushsizehardnessopacitydrag paints with pressure; Ctrl+drag rotates; Shift+click on a segment adds a node; right click deletes a node or the shape
Pathgrows / shrinksfeatheropacityresize around the centroidclick adds a node, Ctrl+click a sharp one; right click closes / deletes
Gradientcurvaturecompressionopacitydouble click resets curvature; Shift+click linear ↔ sigmoid
Liquifyradius and strengthstrengthstrength directionCtrl+click adds a node; Ctrl+Alt+click line ↔ curve; right click cancels

Ctrl + click on a shape button keeps creating shapes of that kind. Crop: Shift+drag moves vertically only, Ctrl+drag horizontally only, Shift on an edge resizes around the centre, right click resets. Rotate and perspective: right drag draws the horizon; Shift + left / right drag selects / deselects lines in a box; the wheel scales the selection radius.

4.5 Curves

Tone curve, base curve, RGB curve (iop/tonecurve.c, rgbcurve.c): hovering selects the nearest node; the wheel moves it vertically (0.001 × multiplier: Ctrl fine, Shift coarse); a drag moves or adds; Ctrl+click adds at the pointer’s x; a double click resets the curve; a right click deletes a node (resets an endpoint). A + wheel zooms the graph (RGB curve). Colour zones: Alt + wheel switches the channel tab; in “edit by area” the wheel sets the brush radius; Ctrl + right click sets a node to zero. RGB levels: the wheel moves the active handle.

4.6 Lighttable and culling

  • File manager: the wheel scrolls one row (or pixels with thumbtable_fractional_scrolling); Ctrl + wheel changes the thumbnails per row; Ctrl/Cmd+click toggles, Shift+click selects a range, a click on empty space clears; selection happens on release; a double click opens the darkroom. No rubber band, nothing on middle or right click. Dragging thumbnails exports ids and URIs.
  • Zoomable lighttable: the wheel zooms, a left drag pans, touchpad pans, pinch zooms.
  • Filmstrip: the wheel moves one image, Shift + wheel a page, Ctrl + wheel resizes the bottom panel.
  • Culling / preview (dtgtk/culling.c): the wheel goes to the next image; Ctrl + wheel zooms all images, Ctrl+Shift + wheel only the hovered one; a left drag pans all, Shift + drag only the hovered one; a middle click toggles 100 % (Shift: hovered only).
  • Map view: the wheel zooms at the pointer; over a location shape, plain / Shift / Ctrl + wheel resize both / one / the other radius.

4.7 What darktable teaches

  1. The wheel is overloaded on purpose and follows the pointer: over the image it zooms, over a shape it sizes it, over a curve node it moves it, over a slider it changes it, over a thumbnail grid it scrolls. Users expect the object under the pointer to take the wheel.
  2. Modifiers on the wheel mean fine/coarse on values (Ctrl / Shift) but another parameter on shapes (Shift = feather, Ctrl = opacity). egui-pop’s rule “a modifier never changes what a gesture adjusts, only how finely” (gestures.rs) does not hold there; the profile must allow both, per canvas kind.
  3. Ctrl + wheel “lifts the limits” on zoom, and the ladder has stops at fit, 100 % and 200 %: the same idea as egui-pop’s 100 % detent.
  4. A guarded escape hatch exists for the panel: Ctrl+Alt + wheel, and a preference to swap the default.
  5. Mouse shortcuts in the keymap are keyed (hold a key + scroll/drag); plain modifier + pointer gestures are hard-wired in the widgets. egui-pop can do better: bind modifier + pointer gestures in the keymap directly.

5. Conflicts and platform constraints

  • Linux window managers. GNOME (mutter) uses Super + left drag to move a window, Super + middle to resize, Super + right for the window menu (mouse-button-modifier). KDE (KWin) now defaults to Meta, or Alt if chosen; it moved away from Alt partly because of conflicts with GIMP and Blender. Xfce still uses Alt + drag, and Alt + wheel zooms the whole desktop. So: no default binding should rely on Alt + drag or Super + anything; Alt + wheel is unreliable on Xfce. A profile that uses Alt (Adobe: Alt + wheel zooms) needs a warning in the editor on Linux.
  • macOS. Cmd plays Ctrl’s role; egui’s Modifiers::command (and egui-pop’s keymap, which maps Cmd to ctrl) already handles it. Ctrl + click is a secondary click, so “Ctrl + left click” must not be bound on macOS unless it means the context menu. A two-finger click or tap is the secondary click.
  • Browsers. Ctrl + wheel zooms the page. A web build must take the wheel event with a non-passive listener and preventDefault before the browser (to verify: whether eframe’s web runner already does this when egui wants the pointer). A trackpad pinch also arrives as Ctrl + wheel. Firefox’s Shift + right click bypasses the page’s context menu; on Windows a middle click starts autoscroll and on Linux pastes.
  • Trackpads. A trackpad emits Point units; a wheel Line units. This split is the cheapest way to tell them apart, but it is not reliable: some mice (Apple Magic Mouse, high-resolution and free-spinning wheels on Linux with libinput, browsers that report pixels) emit Point units too. darktable uses GDK’s source device (GDK_SOURCE_TOUCHPAD) instead, which egui does not expose. A per-device override (“this wheel is a mouse”) is the escape hatch.
  • Pinch vs Ctrl + wheel. egui merges them in zoom_delta(); Windows legacy apps and browsers deliver pinch as Ctrl + wheel. A profile cannot give Ctrl + wheel a different meaning from pinch on those platforms; the profiles below keep them compatible (Ctrl + wheel is some kind of zoom in every profile but Adobe’s, where it scrolls horizontally, as in Photoshop).
  • Left-handed setups. The OS swaps the buttons; egui receives the logical primary button. Nothing to do, except never naming the buttons “left/right” in the UI (say “primary/secondary”, or follow the OS). Krita offers a Ctrl/Alt swap for keyboards without a right Alt.
  • Pen and touch. egui gives touch events and a pinch, not pen pressure or tilt. Pen buttons arrive as mouse buttons. Out of scope here, but the gesture model should not assume a wheel exists: the Trackpad profile covers pens and touchscreens too.
  • Middle button absent (trackpads, many laptops): every middle gesture needs an alternative (Space + drag, or Blender-style “emulate 3 buttons” with Alt + left, which hits the Linux WM).

6. Proposed profiles

6.1 The model

Gesture actions are commands like any other, with an argument (the amount, the delta), grouped per canvas kind:

  • view: view.zoom (at the pointer), view.zoom_free (no stops or limits), view.pan, view.pan_x, view.pan_y, view.zoom_cycle (fit → 100 % → 200 %), view.fit, view.zoom_box, view.leave (the app’s “back” action: darktable’s double click);
  • selection: select.replace, select.add, select.toggle, select.range, select.box, select.box_add;
  • objects: object.move, object.move_constrained, object.duplicate, object.menu;
  • values: value.step, value.step_fine, value.step_coarse, value.reset, value.edit (typed entry / fine-tune popup), value.beyond_limits;
  • handles (masks, nodes, points): handle.size, handle.feather, handle.opacity, handle.rotate, handle.delete, handle.reset;
  • panel.scroll, panel.scroll_x.

Pointer triggers extend the keymap’s Chord: the same ctrl/alt/shift/meta modifiers, plus a pointer part instead of a key:

Wheel  WheelX  Scroll  ScrollX  Pinch          (Wheel = line units, Scroll = point units)
Primary  Secondary  Middle  Back  Forward      (+ Click, DoubleClick, Drag, LongPress)
Space+PrimaryDrag                               (a held key + a pointer gesture, as darktable)

e.g. "Ctrl+Wheel", "Shift+MiddleDrag", "Space+PrimaryDrag", "SecondaryClick", "Pinch". A trigger is bound in a scope, one per canvas kind (surface:canvas.image, canvas.graph, canvas.curve, canvas.minimap, widget.value, widget.list, widget.grid) and, inside a canvas, on a target: empty canvas, a handle or node, a port. The keymap’s existing layers (default, workspace, user), when clauses, resolve trace and conflicts() apply unchanged.

A profile is a named set of default-layer bindings for every scope (as Blender’s keymap presets and Krita’s input profiles), plus the InputOptions it implies (zoom and scroll modifiers). Choosing a profile is one setting, input.pointer_profile. Overrides are ordinary user-layer bindings on top, and survive a profile change (ComfyUI instead flips to “Custom”; Blender copies the preset). The shortcuts editor shows the profile name with “(2 changes)”, a filter “pointer gestures”, and a “reset to profile” per binding.

Two global options sit beside the profile, because they cut across all of them: wheel device (auto from units / always a mouse / always a trackpad) and zoom direction (wheel up zooms in / out).

The canvases read the resolved bindings (a Gestures per canvas kind, built from the keymap) instead of their own defaults; Scene’s input handling is switched off for the graph and its transform driven from the same resolution. The modifiers held change the cursor and, where a status line exists, a hint (“drag: pan · Shift: add · Ctrl: toggle”), using the cursor query that already carries the modifiers (cursors.md).

6.2 The profiles

Cells name the action; “—” means unbound (it falls through to the parent, e.g. the panel scrolls). In every profile: Escape cancels a drag, two-finger scroll pans and pinch zooms on canvases (the Trackpad profile only changes the rest), primary click / Shift / Ctrl on lists and grids select / range / toggle (the OS convention, not a profile matter), and a secondary click on an object opens its menu unless the table says otherwise.

A. darktable (default for Helios)

Close to darktable as section 4 reads it; where darktable has no such canvas (the node graph), it follows node editors.

TriggerImage viewportNode graphCurvesMinimap / navigatorSliders / valuesLists / grids
Wheelzoom at pointer, stops at fit/100/200 %zoom at pointerover a point: move it (value.step)zoom at mapped pointvalue.stepscroll; grid: —
Shift + wheelover a handle: feather; else pan xpan xcoarse step—coarse stepscroll x
Ctrl + wheelzoom free; over a handle: opacityzoom freefine stepzoom freefine stepgrid: thumbnails per row
Ctrl+Alt + wheelpanel.scrollpanel.scrollpanel.scrollpanel.scrollpanel.scroll—
Alt + wheel——(colour-zones style: next channel)———
Primary drag, emptypanbox selectadd a point / movemove the frameabsolute dragrubber band
Shift + primary draghandle: constrain / one handlebox addcoarse movecoarserelative coarseextend
Ctrl + primary draghandle: rotatebox togglefine movefinerelative finetoggle
Space + primary dragpanpan————
Middle dragpanpan—pan——
Middle clickzoom cycle 100 → 200 → fit at pointerfit—zoom cyclesoft ↔ hard range—
Primary double clickview.leave (back to the browser)fit; on a node title: collapsereset curve; on a point: deletefitresetactivate
Secondary clickhandle: delete; empty: —menudelete pointcentrevalue.edit (fine-tune, type)menu
Secondary dragtool secondary (straighten)——centre——
Two-finger scrollpanpan—panpanel.scrollscroll
Pinchzoomzoom—zoom—grid: thumbnail size

Preference “the wheel scrolls the side panel” (darktable’s sidebar_scroll_default) swaps value.step and panel.scroll on widgets.

B. Adobe (Lightroom Classic, Photoshop, Capture One-ish)

The proposal, as first made; since 2026-10-22 it ships as two profiles, Photoshop and Lightroom Classic, each following its application (the notes after the table).

TriggerImage viewportNode graphCurvesMinimap / navigatorSliders / valuesLists / grids
Wheelpan y (“Zoom with scroll wheel” toggles to zoom)pan y——panel.scrollscroll
Shift + wheelpan xpan x——panel.scrollscroll x
Ctrl + wheelpan x (Photoshop) — or zoom if pinch must equal Ctrl + wheel (open question)zoom——panel.scroll—
Alt + wheelzoom at pointerzoom—zoom——
Primary click, emptyzoom toggle fit ↔ 100 % at pointer (Lightroom)clear selectionadd pointcentrejumpselect
Primary drag, emptypan when zoomedbox selectmove pointmove frameabsolute dragrubber band
Shift + primary dragconstrain; scrubby zoombox addconstrain—coarseextend
Ctrl + primary dragzoom boxbox toggle———toggle
Alt + primary dragduplicate / from centreduplicate selection——fine—
Space + primary dragpanpan————
Space+Ctrl + click / Space+Alt + clickzoom in / zoom outsame————
Middle drag / clickpan / —pan / —————
Primary double clickfitfitdelete pointfiton the label: resetactivate
Secondary clickmenumenumenu—menumenu
Two-finger scroll / pinchpan / zoompan / zoom—pan / zoompanel.scrollscroll

Photoshop and Lightroom Classic (2026-10-22). A profile follows the application it is named after; where that application has no equivalent, the gesture is left unbound rather than invented.

Photoshop (photoshop):

  • Image: the wheel scrolls vertically [PS1], Ctrl + wheel sideways and Alt + wheel zooms (s) [PS2]; Shift + wheel is not documented and left unbound. A primary drag pans, as the Hand tool [PS1]. A click does nothing: only the Zoom tool zooms on a click [PS1], and an image viewer is under the Hand tool. A double click on the image does nothing either (image_double_click: nothing); Photoshop’s double clicks that fit or show 100 % are on the Hand and Zoom tools’ icons [PS1]. The middle button is not documented: unbound. Two fingers pan and a pinch zooms [PS1].
  • Values: Shift + drag ten times coarser [PS5], Alt (Option) + drag ten times finer (s) [PS4] [PS6], Ctrl nothing. The arrows follow the drag: Shift with them is coarser, as Shift with the Up and Down Arrow keys steps a pop-up slider by 10 % [PS5]. Alt with a drag comes with the shortcuts editor’s Linux warning (Xfce and KWin take it).

Lightroom Classic (lightroom):

  • Image: a click toggles the two zoom levels, fit and 1:1 [LR1]; a primary drag pans, as the Hand tool in the Loupe [LR1]. A double click goes from the Loupe back to the Grid (s) [LR2]: the profile leaves the view (image_double_click: leave). The double click’s first click toggles the zoom; its second press runs the double click alone, as in every profile, so the zoom left behind is whatever that first click gave, which no longer matters once the view is left. The plain wheel neither zooms nor pans the Loupe [LR1], and Ctrl + wheel zooms (s) [LR6]; Shift and Alt with the wheel and the middle button are not documented: unbound. Lightroom’s Space toggles the zoom, and held with a press zooms in to pan [LR1]; egui-pop’s Space + drag pans in every profile, which comes close. Shift + drag (scrubby zoom) and Ctrl + drag (zoom to a box) in Develop (s) [LR2] have no gesture command yet: unbound.
  • Values: a Shift drag on a Develop slider is slower, for fine tuning (s) [LR4]; no modifier makes a drag coarser; Alt while dragging a Basic panel slider shows the clipped areas [LR5], an application’s matter, so Alt + drag is unbound. The arrows take their own modifiers (value_keys): Shift with them gives larger increments [LR3], Alt smaller ones (s) [LR4]. Alt on the colour wheels is a fine adjust mode [LR5], which a wheel widget of an application’s own may follow.

Neither application has a node graph: both profiles take Photoshop’s canvas wheel there (the wheel pans, Ctrl + wheel pans sideways, Alt + wheel zooms; two fingers and a pinch as everywhere), and Space + drag pans it.

The id adobe, the single profile shipped before 2026-10-22, is an alias of lightroom, the closer of the two for a photo editor: an application or a saved setting naming it gets Lightroom Classic (pointer::ALIASES; the settings document’s version 2 rewrites it). No picker lists it.

C. Document (GIMP, Inkscape, Figma, the web)

Everything scrolls like a page; zoom is Ctrl + wheel (the browser’s own convention, so it is also the natural web default).

TriggerImage viewportNode graphCurvesMinimap / navigatorSliders / valuesLists / grids
Wheelpan ypan y——panel.scrollscroll
Shift + wheelpan xpan x——panel.scrollscroll x
Ctrl + wheelzoom at pointerzoom at pointer—zoomwhen focused: coarse stepgrid: thumbnail size
Primary drag, emptytool / pan if no toolbox selectadd / movemove frameGIMP: absoluterubber band
Shift + / Ctrl + primary dragadd / subtract (GIMP)box add / togglecoarse / fine—fine (Shift) / coarse (Ctrl)extend / toggle
Space + primary dragpanpan————
Middle dragpanpan—panvalue.edit (GIMP)autoscroll / —
Shift + middle drag / Ctrl + middle dragzoom box / zoomzoom box / zoom————
Primary double click—enter / fitdelete pointfit—activate
Secondary clickmenumenumenu—value.editmenu
Secondary drag—pan (Figma option)——fine drag (GIMP)—
Two-finger scroll / pinchpan / zoompan / zoom—pan / zoompanel.scrollscroll

D. Blender / node editors (Blender, Unreal, Unity, ComfyUI, Houdini)

TriggerImage viewportNode graphCurvesMinimap / navigatorSliders / valuesLists / grids
Wheelzoom at pointerzoom at pointer—zoompanel.scrollscroll
Shift + wheelpan ypan y——panel.scroll—
Ctrl + wheelpan xpan xstep point—value.step—
Primary drag, emptybox select / toolbox selectmove pointmove framerelative dragrubber band
Shift + primary dragbox addbox addfine—fineextend
Ctrl + primary dragbox remove (Unreal)box removesnap—snaptoggle
Ctrl+Alt + primary draglassolasso————
Middle dragpanpan—pan——
Ctrl + middle dragzoom (scrubby)zoom————
Secondary clickmenumenumenu—menumenu
Secondary drag—Ctrl: cut links (Blender); plain: pan (Unreal)————
Primary double clickfitfit / open groupresetfitvalue.editactivate
Alt + primary drag(emulate middle, off by default)detach links————
Two-finger scroll / pinchpan / zoompan / zoom—pan / zoompanel.scrollscroll

Reset a value: Backspace over it (Blender), plus double click.

E. Trackpad (laptops, tablets, no middle button)

For devices with no wheel and no middle button. Never changes values on scroll (accidental edits are the main complaint on trackpads).

TriggerImage viewportNode graphCurvesMinimap / navigatorSliders / valuesLists / grids
Two-finger scrollpanpan—panpanel.scrollscroll
Pinchzoom at pointerzoom—zoom—grid: thumbnail size
Ctrl (Cmd) + two-finger scrollzoomzoomfine stepzoomvalue.step—
Two-finger double tap (where the OS sends it)zoom toggle fit ↔ 100 %fit—fit——
Primary drag, emptypan (image)box selectmovemove framerelative dragrubber band
Space + primary dragpanpan————
Shift / Ctrl + primary dragcoarse / fine on handlesbox add / togglecoarse / fine—coarse / fineextend / toggle
Secondary click (two-finger click)menumenudelete point—value.editmenu
Primary double clickfitfitresetfitresetactivate
Long pressmenumenu——value.editmenu

6.3 Defaults

  • Helios: the darktable profile, with the wheel device on “auto” (line units zoom, point units pan, as darktable’s touchpad_gestures).
  • egui-pop’s gallery (and the library’s built-in default): also the darktable profile for canvases. It is what issue #47 proposed (wheel zooms, middle pans, smooth scroll pans, pinch zooms) and what node editors do; only the sliders differ: the gallery keeps today’s guarded wheel (panel scroll unless focused or a modifier is held), since a library default should not edit values by accident. On the web build, “Document” is the safer first choice if taking Ctrl + wheel from the browser proves unreliable (open question).
  • A profile picker in the settings’ input section (“Pointer: darktable / Adobe / Document / Blender / Trackpad”), with a one-line description and a link to the shortcuts editor filtered on pointer gestures.

6.4 Steps (once the questions are settled)

  1. Chord gains a pointer part; the keymap schema version goes up; parsing and the editor’s capture accept wheel, clicks and drags.
  2. Gesture actions as commands; per-canvas Gestures resolved from the keymap and published in the context slots that exist today.
  3. Canvases read raw wheel events (unit, modifiers) and Event::Zoom; the graph drives Scene’s transform itself; InputOptions follow the profile.
  4. Profiles as default-layer documents shipped with the library; Helios selects darktable.
  5. Cursor and status hints from the resolved bindings.
  6. kittest tests per profile and canvas: line wheel, point scroll, pinch, middle drag, each modifier.
  7. One gestures page in the docs, linked from the viewport, graph, slider and shortcuts pages.

7. Open questions

  1. Profiles at all: is the profile set (darktable, Adobe, Document, Blender / node editors, Trackpad) right, too many, or missing one (Krita, Capture One)? Should Helios ship all five or only darktable plus Trackpad?
  2. Gallery default: darktable for canvases with guarded sliders (as proposed), or Document on the web build only?
  3. Pointer gestures in the keymap document (one editor, one conflict check, a schema bump) or in a sibling “pointer map” document shown in the same editor?
  4. Overrides across a profile change: keep them (proposed) or reset them like ComfyUI’s “Custom”?
  5. Wheel over sliders in the darktable profile: change the value (darktable’s default) with Ctrl+Alt + wheel for the panel, or egui-pop’s guard (focus or a modifier)?
  6. Modifiers change what, or how finely: darktable’s masks use Shift + wheel for feather and Ctrl + wheel for opacity, against the rule in gestures.rs. Accept “per target” meanings in the profile?
  7. Primary double click on the image: darktable leaves for the lighttable; the viewport today fits. Map it to view.leave in Helios’s darktable profile (the app decides what “leave” means) or keep fit?
  8. Primary drag on an empty image: pan (darktable, Lightroom) in every profile for the image viewport, and box select only on the graph?
  9. Secondary button: context menu everywhere except where a profile says otherwise (darktable: slider fine-tune, straighten on the image; Unreal: pan)? The graph pans with a right drag today; keep it in the darktable profile?
  10. Fine/coarse modifiers: Ctrl fine / Shift coarse (darktable, today) everywhere, or per profile (Blender and Krita: Shift fine)?
  11. Alt: should any default use Alt (Adobe’s Alt + wheel zoom), given Xfce and KWin-with-Alt? Warn in the editor on Linux, or avoid?
  12. Ctrl + wheel on the web: take it from the browser (every profile zooms with it) or bind zoom elsewhere on the web?
  13. Device split: is the line/point unit split enough, with a “wheel device” override, or do we need per-device settings (egui does not expose the device)?
  14. Scope of a profile: do profiles also carry the keyboard navigation keys (Space, +/-, 0/1/2, arrows), like Blender’s keymaps, or pointer gestures only?
  15. Held-key + pointer bindings (darktable’s “hold a key and scroll to change that slider”): in scope now, or later?

8. References

darktable: source files and functions cited in section 4, from https://github.com/darktable-org/darktable/tree/6271f5378/src. Short keys used in section 3.1: [DT-zoom] views/darkroom.c scrolled, develop/develop.c _dev_zoom_move; [DT-masks] develop/masks/*.c; [DT-mid] develop/develop.c (zoom cycle), views/darkroom.c button_pressed; [DT-drag], [DT-dbl], [DT-right] views/darkroom.c button_pressed / mouse_moved; [DT-tp] gui/gtk.c dt_gui_scroll_should_pan, views/darkroom.c gesture_pan, gesture_pinch; [DT-slider] bauhaus/bauhaus.c _widget_scroll, _widget_button_press, gui/gtk.c _dt_gui_ignore_scroll; [DT-lt] dtgtk/thumbtable.c.

Adobe and Capture One help pages were read through web.archive.org snapshots (they refuse automated fetches); the URLs are the originals.

Operating systems and browsers:

Decisions (maintainer, 2026-10-20)

  1. Profiles: the five proposed (darktable, Adobe, Document, Blender / node editors, Trackpad). Helios ships all five, with darktable as its default.
  2. The gallery’s default profile: Document.
  3. User overrides on a profile change: to study. Likely a dialog that asks what to do with them when the profile changes (keep them on top of the new profile, or drop them).
  4. The wheel over sliders and values: an option, not a fixed rule; each profile gives its default.
  5. A double click on the image: an option (leave the view, as darktable does, or fit); each profile gives its default.
  6. Ctrl and the wheel on the web: egui-pop takes it from the browser.

Questions 7 and 12 were settled with these (decisions 5 and 6).

Decisions (maintainer, 2026-10-21)

The answers the first implementation took (see pointer-gestures.md) are confirmed, with question 9 amended. Each is data in the profile documents (crates/egui-pop-model/profiles/*.json) or a setting, so changing one later is an edit there, not in code.

  • Question 6 (modifiers change what, or how finely): a binding’s meaning is per canvas scope, so a profile may give a modifier another action (Blender’s Ctrl + wheel pans sideways). Per-target bindings (a handle, a node, a port) are not built: the wheel over a handle adjusts that handle, whatever the profile.
  • Question 8 (primary drag on an empty image): it pans in every profile; a box select stays the graph’s.
  • Question 9 (secondary button), amended: the secondary button opens a context menu everywhere by default, except where a profile binds a secondary drag: only Blender / node editors pans the graph with it (darktable’s profile does not). Any particular widget that needs the right click for something else may opt out and take the secondary button for itself (a curve editor deleting a node, a colour swatch resetting, a canvas binding a right drag): it claims the secondary click, the drag or both on its rect (egui_pop_core::pointer::claim). While it does, neither the enclosing canvas’s profile binding for that gesture nor a context menu above it fires there. The claim shows in the debug bridge’s pointer collector, and the shortcuts editor lists the widget’s use when the claim says what it does. The curve editor claims the secondary click (it deletes the point under the pointer).
  • Question 10 (fine and coarse): per profile. Ctrl finer and Shift coarser in Document, darktable and Trackpad; Shift finer and Ctrl coarser in Blender / node editors. Document keeps the earlier default rather than GIMP’s Shift-finer cell. Amended 2026-10-22: a profile follows the application it is named after, and the Adobe profile is split in two (see the decisions of 2026-10-22).
  • Question 11 (Alt): used only where the source applications use it (Photoshop’s Alt + wheel zoom and Alt finer on values, Lightroom’s Alt finer with the arrows) or egui-pop already did (Alt + wheel steps a slider without the focus, in Document and darktable); the shortcuts editor warns, on Linux, of a gesture bound with Alt and a drag or the wheel.
  • Question 13 (device split): the line / point split, with a global override (input.wheel_device: auto, mouse, trackpad); no per-device settings.
  • Question 14 (scope of a profile): pointer gestures only; the keyboard navigation keys (Space, +, -, 0, 1, 2, arrows) stay as they are, and Space + drag pans in every profile.
  • Question 15 (held key + pointer): left for later; a held key other than a modifier is not part of a pointer chord yet.

Every question of section 7 is now settled.

Implementation notes (2026-10-21): the gesture commands are per canvas kind (gesture.image.zoom, gesture.graph.pan, gesture.value.step) rather than shared (view.zoom), so the shortcuts editor shows and changes each canvas’s on its own; a gesture keeps several triggers (Wheel, Ctrl+Scroll, Pinch). The options of decisions 4 and 5 are settings whose profile choice takes the profile’s default. Decision 3 is the dialog asking to keep or drop the user’s changes after a change of profile; they stay until it is answered.

Decisions (maintainer, 2026-10-22)

  • Two Adobe profiles. The Adobe profile is replaced by Photoshop (photoshop) and Lightroom Classic (lightroom), each following its application, with sources (section 6.2 B). Where the application has no equivalent, the gesture is left unbound. Six profiles ship.
  • The old id. adobe stays accepted as an alias of lightroom, the closest for a photo editor, and is listed in no picker.
  • The arrows’ own modifiers. A profile may give a value’s arrow keys modifiers other than its drag’s (value_keys): Lightroom Classic’s Shift drag is finer while its Shift with the arrows is coarser. It is profile data the slider reads, not a binding (question 14 stands).