codex-team / codex-team/editor.js

[Bug] Cross block selection selected state gets wrong when pointer moves out edit area

Open
#2,167 0 comments 1 reaction 0 assignees View on GitHub
bug good first issue important
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

**Description**
Cross block selection selected state gets wrong when pointer moves out edit area and go back then.

**Steps to reproduce:**
1. start a cross block selection session, and select some block from bottom to top.
2. move the pointer out of the edit area.
3. move the pointer back into the edit area some where below the selection start point.
There will be a selected block floating above the other selected blocks.
Also, select blocks from top to bottom at step 1 and move pointer into some where above the start point at step 3, will reproduce the bug

**Expected behavior:**

**Screenshots:**
image

image

Device, Browser, OS: Chrome 107 on macOs

Editor.js version: 2.25.0

Plugins you use with their versions:

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.