tsParticles - v4.0.0-beta.12
    Preparing search index...

    Options for the drag interaction mode.

    interface IDrag {
        momentumFactor: number;
        preserveMomentum: boolean;
    }

    Implemented by

    Index

    Properties

    momentumFactor: number

    Scaling factor applied to the computed drag velocity when preserveMomentum is enabled. Higher values result in a faster post-release movement.

    0.03
    
    preserveMomentum: boolean

    When true, the particle retains the velocity of the drag gesture on release instead of resuming the velocity it had before being grabbed.

    false