Added mousemoveCallback threshold option to sampling config. (#492)

* Added mousemoveCallback threshold option to sampling config.

* Added mousemoveCallback to definitions file.
This commit is contained in:
Province Innovation
2026-04-01 12:00:00 +08:00
committed by GitHub
parent d2f18fa03d
commit eeac998959
3 changed files with 8 additions and 1 deletions

View File

@@ -165,6 +165,10 @@ export type SamplingStrategy = Partial<{
*/
mousemove: boolean | number;
/**
* number is the throttle threshold of mouse/touch move callback
*/
mousemoveCallback: number;
/**
* false means not to record mouse interaction events
* can also specify record some kinds of mouse interactions
*/