Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

872 B
Raw Blame
import type { TerminalDocumentScope } from './document-scope'
import { stopSurfaceTouchGestures } from './surface-touch-gestures'
import { resetSmoothScrollOffset } from './normal-buffer-smooth-scroll'
import { clearLongPress } from './tap-dispatch'
import { stopEdgeScroll } from './selection-overlay'

export function suspendSurfaceTouchGestures(scope: TerminalDocumentScope) {
  stopSurfaceTouchGestures(scope)
  resetSmoothScrollOffset(scope)
  clearLongPress(scope)
  stopEdgeScroll(scope)
  scope.tapCandidate = null
  scope.mouseGesture = null
  scope.wheelAccumDeltaY = 0
  scope.touchGesture.velY = 0
  scope.touchGesture.accumDelta = 0
  scope.touchGesture.isPinching = false
  scope.touchDispatch = {
    mode: 'idle',
    touchId: null,
    touchIds: null,
    longPressFingerInsideOverlay: false
  }
  if (scope.sel) {
    scope.sel.activeHandle = null
  }
}