Skip to content

v0.6.114: responsive Run long-press → reference search + haptic

Choose a tag to compare

@prjctimg prjctimg released this 25 Jul 13:33
· 37 commits to main since this release
149f186
The Run-button long-press → reference search modal wiring has existed since
earlier builds (handleRunPressIn armed a 2000ms timer that calls
setSearchVisible(true); handleRunPressOut cancelled it to invoke handleRun
for short presses). Two UX wrinkles remained:

  1. The 2-second hold felt sluggish — the user didn't get a responsive
     long-press and might think the feature was missing.
  2. Even after the SearchOverlay focus effect landed in v0.6.110 (so the
     keyboard reliably raises when the modal opens), there was no tactile
     signal at the long-press trigger instant.

Lowered the threshold to 600ms (per user choice) and fire
Haptics.impactAsync(ImpactFeedbackStyle.Light) the instant setSearchVisible
fires. Short-press behavior unchanged: cancelling the timer in
handleRunPressOut still calls handleRun() to run the sketch. expo-haptics is
already a project dependency (used by useShakeDetection) so no package.json
change.

Entire-Checkpoint: 01KYCMTH0QHA0C6JTS0AMHYXGM