#711·dragula

Drag sensitivity settings slideFactorX and slideFactorY ignored on touch

Author: Alex870Created Feb 21, 2025Updated Feb 21, 2025

slideFactorX and slideFactorY set the number of pixels before a drag becomes activated, essentially defining the sensitivity of activation. The default is a single pixel move to activate and reducing sensitivity would be particularly helpful on touch interfaces with unsteady fingers. However, these sensitivity settings are only observed for mouse drags, not touch drags.

To recreate: set up a standard dragula demo and add large slideFactor options like: {slideFactorX: 100, slideFactorY: 100}. For example, this JSFiddle.

Observe the 100 pixel activation drag required on a mouse, and the absence of that requirement on a touch drag.