Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Don’t autoscroll to selection when double- or triple-click dragging - #8123

Merged
nathansobo merged 1 commit into
masterfrom
ns-fix-autoscroll-when-selection-words-or-lines
Jul 28, 2015
Merged

nathansobo merged 1 commit into
masterfrom
ns-fix-autoscroll-when-selection-words-or-lines

Conversation

@nathansobo

Copy link
Copy Markdown
Contributor

Instead just autoscroll to the cursor, which is what we do when single-click dragging.

Fixes #6675

@benogle benogle mentioned this pull request Jul 28, 2015
nathansobo pushed a commit that referenced this pull request Jul 28, 2015
…ords-or-lines

Don’t autoscroll to selection when double- or triple-click dragging
@nathansobo
nathansobo merged commit cf6a6fe into master Jul 28, 2015
@nathansobo
nathansobo deleted the ns-fix-autoscroll-when-selection-words-or-lines branch July 28, 2015 22:33
@izuzak

izuzak commented Jul 29, 2015

Copy link
Copy Markdown
Contributor

@nathansobo Thanks for fixing this. ⚡

I'm seeing different behavior for single-click drag-to-scroll, double-click drag-to-scroll, and triple-click drag-to-scroll.

When I single-click (I'm testing all of these on text-editor.coffee):

1click

When I double-click:

2click

When I triple-click:

3click

Differences:

  • when I single-click or triple-click and then drag down -- scrolling is super fast. When I double-click and then drag down -- scrolling is slow and choppy.
  • when I single-click, then scroll down, and then scroll all the way up and move the mouse over the the top edge of the window, and then try to scroll down -- scrolling continues to work. When I double-click or triple-click and then do the same -- I can no longer scroll down after scrolling all the way up and move the mouse over the top edge.

Are you seeing the same behavior? It's possible that this PR didn't cause these behaviors, but just wanted to mention it since I was testing this and noticed it. If you see the same and think it's worth fixing -- I'd be happy to create issues for them.

@nathansobo

Copy link
Copy Markdown
Contributor Author

@izuzak Good catch. I actually agree with you that's it's seeming choppier than it was. I'll investigate today.

@nathansobo

Copy link
Copy Markdown
Contributor Author

@izuzak Fixed the autoscroll problems in #8141. Looking into the choppiness now.

@nathansobo

Copy link
Copy Markdown
Contributor Author

@izuzak Fixed choppiness in #8146.

Thanks so much for pointing out these issues. Let me know if I missed anything.

@izuzak

izuzak commented Jul 30, 2015

Copy link
Copy Markdown
Contributor

Yessss! Thanks for the fixes, @nathansobo -- things look great now. 😍

@maxbrunsfeld

Copy link
Copy Markdown
Contributor

👏

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants