Skip to content

Commit

Permalink
fix: selection on db click when container has offset (#4083)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 authored Aug 15, 2023
1 parent e81b0da commit 87c5572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/blocks/src/page-block/text-selection/gesture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export class Gesture {

private _doubleClickHandler: UIEventHandler = ctx => {
const state = ctx.get('pointerState');
const caret = caretFromPoint(state.x, state.y);
const caret = caretFromPoint(state.raw.x, state.raw.y);
if (!caret) {
return;
}
Expand Down

1 comment on commit 87c5572

@vercel
Copy link

@vercel vercel bot commented on 87c5572 Aug 15, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

blocksuite – ./packages/playground

blocksuite-toeverything.vercel.app
blocksuite-five.vercel.app
blocksuite-git-master-toeverything.vercel.app

Please sign in to comment.