mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Ignore leading edge of find-by-DOM throttle
This commit is contained in:
@@ -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 }
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user