Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Fix scroll position jumping for few cases#9624

Merged
RaymondLim merged 3 commits intomasterfrom
randy/issue-9547
Dec 10, 2014
Merged

Fix scroll position jumping for few cases#9624
RaymondLim merged 3 commits intomasterfrom
randy/issue-9547

Conversation

@redmunds
Copy link
Copy Markdown
Contributor

This is for #9547 . This bug was exposed by fix for #9037.

May also help #9629

This change fixes these cases:

  • Ctrl-Shift-O then click in page
  • Ctrl-Shift-O then blur editor
  • Ctrl-G, type in a line number, then Enter key
  • Ctrl-G then blur editor
  • Ctrl-T then blur editor
  • Ctrl-G then click in page
  • Ctrl-T then click in page

Verify that these case are not broken:

  • Ctrl-Shift-O then Esc key
  • Ctrl-Shift-O, select same file with arrow keys, then Enter key
  • Ctrl-Shift-O, select different file with arrow keys, then Enter key
  • Ctrl-G then Esc key
  • Ctrl-T, select element, then Enter key
  • Ctrl-T then Esc key

Note: "blur editor" can be done by selecting same file in working set

cc @peterflynn

@redmunds
Copy link
Copy Markdown
Contributor Author

Check if this also fixes #9629

@redmunds redmunds changed the title Fix scroll position jumping for few cases [Review] Fix scroll position jumping for few cases Nov 11, 2014
@redmunds redmunds changed the title [Review] Fix scroll position jumping for few cases Fix scroll position jumping for few cases Nov 12, 2014
@redmunds
Copy link
Copy Markdown
Contributor Author

redmunds commented Dec 4, 2014

Removing DEVELOPMENT and PICK ME UP labels -- Waffle no longer seems to pick up pull requests.

@peterflynn You filed #9547, so do you care to review this one? This was originally tagged for 1.0, so I think we probably want to get this in for 1.1.

@RaymondLim RaymondLim self-assigned this Dec 8, 2014
@RaymondLim
Copy link
Copy Markdown
Contributor

Looks good! Merging.

RaymondLim added a commit that referenced this pull request Dec 10, 2014
Fix scroll position jumping for few cases
@RaymondLim RaymondLim merged commit 936dda1 into master Dec 10, 2014
@redmunds redmunds deleted the randy/issue-9547 branch December 10, 2014 23:23
peterflynn added a commit that referenced this pull request Mar 24, 2015
…search-field

Reimplements the fixes from PR #9624 & #9153 in a simpler way: instead of
trying to selectively suppress ModalBar's scroll pos adjustments, in cases
where we need to revert scroll pos in one file, just wait until ModalBar is
done adjusting scroll pos and *then* reset the one we care about. Made
possible by the fact that we now listen for ModalBar's "close" event and
the event passes info on the reason for closing.

Removes delay before results list opens: in CEF 2171 it seems both unneeded
(animation is smooth without it) and it triggers an apparent Chrome bug where
the post-animation state is displayed during the delay period even though
the computed style reflects the pre-animation state.

Conflicts:
    src/search/QuickOpen.js
    src/styles/brackets.less
    src/styles/brackets_colors.less
    src/widgets/ModalBar.js
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.

2 participants