ImFusion Web SDK

LongPressDetectionConfig

ts
type LongPressDetectionConfig = {
  durationInMS: number;
  maxPixelDistance: number;
};

Configuration variables for detection of long presses

Properties

durationInMS

ts
durationInMS: number;

How long does the user have to hold a press for it to count as a long press


maxPixelDistance

ts
maxPixelDistance: number;

How far can the user move from the initial point for it to still count as a long press

On this page