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

Backward selection from the start of a block is broken #3147

Closed
zbeyens opened this issue Nov 28, 2019 · 3 comments
Closed

Backward selection from the start of a block is broken #3147

zbeyens opened this issue Nov 28, 2019 · 3 comments

Comments

@zbeyens
Copy link
Contributor

zbeyens commented Nov 28, 2019

Do you want to request a feature or report a bug?

Bug

What's the current behavior?

PwJGRRmom2

https://www.slatejs.org/examples/plain-text

Backward selection from the start of a block is not working correctly.

It looks that the cursor is moving when selecting

Chrome 78.0.3904.108
Windows 10
Slate v0.50.0

What's the expected behavior?

The cursor should not change its position when selecting with the mouse

@ianstormtaylor
Copy link
Owner

Is it just when using the mouse?

@zbeyens
Copy link
Contributor Author

zbeyens commented Nov 28, 2019

Using only Shift+Left, the backward selection breaks when traversing an empty block:

KXr5Z6FTwa

Using Ctrl+Shift+Left: breaks only when starting from an empty block:

R737cQhobJ

@ianstormtaylor
Copy link
Owner

I think the original thing is a mouse-only behavior that is related to the zero-width spaces. I'm going to close in favor of #1971.

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

No branches or pull requests

2 participants