SliderTap - a faster slider for entering numbers and dates

Press a control to engage it. That touch point is kept for the gesture. Drag ↔ along the track to change the pending value. Two slide-rule scales run at once. ↕ away from the track grows the step: m↕ = b^((|dy| − F0) / D). ↔ away from the touch grows the rate on its own base: m↔ = bₓ^((|x − x₀| − F0) / Dₓ). Above and below the track are the same, and left and right of the touch are the same. The dead zone F0 is half the control's height, so a finger still on the touch is exactly ×1 on both scales. The value change is the integral of that rate. Release locks the value (green, not committed). Tap the same control again to commit. Drag a locked control to re-adjust. Escape returns to idle.

Mechanic options

Both scales are symmetric. Moving back toward the track, or back toward the touch point, shrinks that scale continuously to ×1. There is no separate finer side.

Designer: bases and distances

Each slider has a perpendicular base b (data-log-base / logBase) and distance D (data-log-distance / logDistance), plus a separate horizontal base bₓ (data-x-log-base / logBaseX) and distance Dₓ (data-x-log-distance / logDistanceX). Defaults are 10 and 120 px per factor, clamped to 40–400. F0 is half the control's height, captured with the touch point when the gesture starts. One step is capped at about a tenth of the range.

Perpendicular ↕ — step size from the track centre

120

Horizontal ↔ — rate from the touch point

120

Distances above are travel past the dead zone. The perpendicular ruler uses D, so lowering D brings the high multipliers into view. The ruler is clipped to the viewport; neither mapping is compressed. Dₓ is how far you drag from the touch before the horizontal rate grows by one factor of bₓ.

(a) Numeric value, 0 – 10,000

Base step s = 1. At base 10 and D = 120, ×2 is about 36 px past the dead zone and ×10 is 120 px past it. The horizontal scale uses the same shape with bₓ and Dₓ, measured from where you pressed. The value is accumulated exactly and shown as a whole number.

Committed: —

(b) Food log weight, g / oz

Both units stay visible. The step unit chooses the base step s: 1 g or 0.1 oz. The ruler multiplies that step. Commit appends the rounded amount to the food log.

Step unit:
Food log:
  • (nothing logged yet)

(c) Date

The same two scales over days: step = 1 day × m↕ × m↔. With base 10 and D = 120, ×10 on the perpendicular ruler is about 1.4 weeks. Dragging out from the touch grows the rate by bₓ every Dₓ pixels. Fractional days accumulate internally; the control shows and commits the nearest whole date. Page Up and Page Down still jump the keyboard step by one factor of the perpendicular base.