<!-- Please provide a clear and concise description of what the bug is. Include screenshots if needed. Please test using the latest version of the relevant Lexical packages to make sure your issue has not already been fixed. --> Lexical version: every version ## Steps To Reproduce https://github.com/facebook/lexical/assets/78121870/1ec772c8-4511-4d07-8e4b-e1cb685e59e0 1. select `20px` in toolbar 2. click editor <!-- Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than Lexical. Issues without reproduction steps or code examples may be closed as not actionable. --> Link to code example: <!-- Please provide a CodeSandbox (https://codesandbox.io/s/new) or (https://codesandbox.io/s/lexical-plain-text-example-g932e), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. You may provide a screenshot of the application if you think it is relevant to your bug report. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve. --> ## The current behavior - reset default fontSize ## The expected behavior - keep current style I found what makes bug. [onSelectionChange](https://github.com/facebook/lexical/blob/ed8f85fb5e5106dba237e2a166e57acaa28e8fbe/packages/lexical/src/LexicalEvents.ts#L258) has below logic. ```typescript if ( currentTimeStamp < timeStamp + 200 && anchor.offset === lastOffset && anchor.key === lastKey ) { selection.format = lastFormat; selection.style = lastStyle; } ``` If conditional statement is true, It works expected. but `currentTimeStamp < timeStamp + 200` is false. What is the intention of this code??
Lexical version: every version
Steps To Reproduce
2023-11-04.10.44.12.mov
20pxin toolbarLink to code example:
The current behavior
The expected behavior
I found what makes bug. onSelectionChange has below logic.
If conditional statement is true, It works expected. but
currentTimeStamp < timeStamp + 200is false.What is the intention of this code??