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(editor): using click event instead of pointerDown event for page block #10351

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

L-Sun
Copy link
Contributor

@L-Sun L-Sun commented Feb 21, 2025

Close BS-2647

What Changes:

  • Using click event instead of pointerDown event to handle selection logic in page block, because gestures on mobile devices can trigger the pointerDown event, causing the cursor to update and unexpectedly bring up the virtual keyboard.

Copy link
Contributor Author

L-Sun commented Feb 21, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

codecov bot commented Feb 21, 2025

Codecov Report

Attention: Patch coverage is 43.75000% with 9 lines in your changes missing coverage. Please review.

Project coverage is 54.41%. Comparing base (07cbf5a) to head (72b7519).
Report is 1 commits behind head on canary.

Files with missing lines Patch % Lines
...uite/affine/block-root/src/page/page-root-block.ts 43.75% 9 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           canary   #10351   +/-   ##
=======================================
  Coverage   54.41%   54.41%           
=======================================
  Files        2335     2335           
  Lines      107935   107921   -14     
  Branches    17822    17817    -5     
=======================================
- Hits        58733    58728    -5     
+ Misses      47876    47857   -19     
- Partials     1326     1336   +10     
Flag Coverage Δ
server-test 78.71% <ø> (ø)
unittest 31.32% <6.25%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@L-Sun L-Sun marked this pull request as ready for review February 21, 2025 10:06
@L-Sun L-Sun requested a review from a team as a code owner February 21, 2025 10:07
@graphite-app graphite-app bot requested review from a team February 21, 2025 10:07
@L-Sun L-Sun changed the title refactor(editor): using click event instead of pointerDown event for page block fix(editor): using click event instead of pointerDown event for page block Feb 21, 2025
@L-Sun L-Sun force-pushed the l-sun/refactor/page-block-click branch from 567d7de to ea223d0 Compare February 21, 2025 10:59
@L-Sun L-Sun marked this pull request as draft February 21, 2025 11:35
@L-Sun L-Sun force-pushed the l-sun/refactor/page-block-click branch from ea223d0 to bc02398 Compare February 21, 2025 12:06
@L-Sun L-Sun marked this pull request as ready for review February 21, 2025 12:27
@L-Sun L-Sun force-pushed the l-sun/refactor/page-block-click branch from bc02398 to 5e0d728 Compare February 21, 2025 12:59
@L-Sun L-Sun added the merge label Feb 21, 2025
Copy link
Contributor Author

L-Sun commented Feb 21, 2025

Merge activity

  • Feb 21, 8:14 AM EST: The merge label 'merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 21, 8:14 AM EST: A user added this pull request to the Graphite merge queue.
  • Feb 21, 8:34 AM EST: A user merged this pull request with the Graphite merge queue.

…block (#10351)

Close [BS-2647](https://linear.app/affine-design/issue/BS-2647/ios返回手势会误触发focus导致弹起键盘)

### What Changes:
- Using `click` event instead of `pointerDown` event to handle selection logic in page block, because gestures on mobile devices can trigger the `pointerDown` event, causing the cursor to update and unexpectedly bring up the virtual keyboard.
@graphite-app graphite-app bot force-pushed the l-sun/refactor/page-block-click branch from 5e0d728 to 72b7519 Compare February 21, 2025 13:19
@graphite-app graphite-app bot merged commit 72b7519 into canary Feb 21, 2025
66 checks passed
@graphite-app graphite-app bot deleted the l-sun/refactor/page-block-click branch February 21, 2025 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants