fix(tracker): fix thrashing detection, remove unused files from testing playground
This commit is contained in:
parent
57cdc4ae92
commit
65a790aaf3
5 changed files with 3 additions and 6 deletions
|
|
@ -4,10 +4,7 @@
|
|||
"private": true,
|
||||
"dependencies": {
|
||||
"@openreplay/tracker": "file:../../../openreplay/tracker/tracker",
|
||||
"@openreplay/tracker-axios": "^3.6.2",
|
||||
"@openreplay/tracker-fetch": "^3.6.2",
|
||||
"@openreplay/tracker-redux": "^3.5.1",
|
||||
"@openreplay/tracker-zustand": "^1.0.3",
|
||||
"@tanstack/react-table": "^8.2.6",
|
||||
"@types/node": "^12.0.0",
|
||||
"@types/react": "^17.0.0",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import React from "react";
|
||||
import Tracker from "@openreplay/tracker";
|
||||
import axios from "axios";
|
||||
import create from "zustand";
|
||||
|
||||
import { userId, getTracker, store } from "./tracker";
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
- fix webworker writer re-init request
|
||||
- remove useless logs
|
||||
- tune mouse thrashing detection
|
||||
|
||||
# 6.0.0
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@openreplay/tracker",
|
||||
"description": "The OpenReplay tracker main package",
|
||||
"version": "6.0.0",
|
||||
"version": "6.0.1",
|
||||
"keywords": [
|
||||
"logging",
|
||||
"replay"
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ export default function (app: App, options?: MouseHandlerOptions): void {
|
|||
}
|
||||
|
||||
const acceleration = (nextVelocity - velocity) / shakeCheckInterval
|
||||
if (directionChangeCount > 3 && acceleration > shakeThreshold) {
|
||||
if (directionChangeCount > 4 && acceleration > shakeThreshold) {
|
||||
app.send(MouseThrashing(now()))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue