Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cursor blink lags when pointer down at text range #4180

Merged
merged 4 commits into from
Nov 29, 2024
Merged

Conversation

lumixraku
Copy link
Contributor

close #xxx

Pull Request Checklist

  • Related tickets or issues have been linked in the PR description (or missing issue).
  • Naming convention is followed (do please check it especially when you created new plugins, commands and resources).
  • Unit tests have been added for the changes (if applicable).
  • Breaking changes have been documented (or no breaking changes introduced in this PR).

@lumixraku lumixraku marked this pull request as ready for review November 28, 2024 12:48
Copy link

github-actions bot commented Nov 28, 2024

View Deployment

📑 Examples 📚 Storybook
🔗 Preview link 🔗 Preview link

Copy link

github-actions bot commented Nov 28, 2024

Playwright test results

passed  20 passed

Details

stats  20 tests across 9 suites
duration  4 minutes, 49 seconds
commit  3ad103e
info  For more information, see full report

@lumixraku
Copy link
Contributor Author

It's wried that scene.addObject won't call markDirty of layer.

now transformByState dirty layer.

image

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 33.78%. Comparing base (01ecc28) to head (3ad103e).
Report is 8 commits behind head on dev.

Files with missing lines Patch % Lines
packages/engine-render/src/layer.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #4180   +/-   ##
=======================================
  Coverage   33.77%   33.78%           
=======================================
  Files        2456     2487   +31     
  Lines      127710   127652   -58     
  Branches    28603    28599    -4     
=======================================
- Hits        43129    43121    -8     
+ Misses      84581    84531   -50     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lumixraku
Copy link
Contributor Author

WeChatWorkScreenshot_e94b8265-5736-4c8b-aabc-9208e1a37d48 image

};

// wait for anchorShape created.
setTimeout(() => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有了下面 make dirty 是不是不用setTimeout 呢

@@ -121,25 +121,23 @@ export class TextRange implements IDocRange {
}

private _anchorBlink() {
setTimeout(() => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为啥删除这个呢?这个是为了 500ms 后隐藏

@lumixraku lumixraku merged commit de4d70b into dev Nov 29, 2024
9 checks passed
@lumixraku lumixraku deleted the fix/cursor-blink branch November 29, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants