Ignore leading edge of find-by-DOM throttle

This commit is contained in:
Dan Abramov
2019-04-20 22:17:12 +01:00
parent 4b9082eea1
commit 006e03c38e
+4 -1
View File
@@ -525,6 +525,9 @@ export default class Agent extends EventEmitter {
this._bridge.send('selectFiber', id);
}
}),
200
200,
// Don't change the selection in the very first 200ms
// because those are usually unintentional as you lift the cursor.
{ leading: false }
);
}