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

[sql lab] fix sluggish backspace in editor #3286

Merged
merged 1 commit into from
Aug 15, 2017

Conversation

mistercrunch
Copy link
Member

Somehow Ace's "changeSelection" event is triggered when hitting
backspace (and shouldn't!).

changeSelection on our side triggers enough work to make the
holding backspace sluggish and laggy.

This fix ignores selection with a length of 1, avoiding mutating the
state altogether when hitting/holding backspace.

Somehow Ace's "changeSelection" event is triggered when hitting
backspace (and shouldn't!).

changeSelection on our side triggers enough work to make the
holding backspace sluggish and laggy.

This fix ignores selection with a length of 1, avoiding mutating the
state altogether when hitting/holding backspace.
@coveralls
Copy link

coveralls commented Aug 14, 2017

Coverage Status

Coverage remained the same at 69.415% when pulling 880b845 on mistercrunch:sqllab_backspace into c9c6bca on apache:master.

@graceguo-supercat
Copy link

LGTM!

@mistercrunch mistercrunch merged commit 8181730 into apache:master Aug 15, 2017
@mistercrunch mistercrunch deleted the sqllab_backspace branch August 15, 2017 00:55
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.19.1 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.19.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants