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

Lock scroll bottom on console window resize. Fixes #32. #105

Merged
merged 1 commit into from
Feb 1, 2015

Conversation

noahpatterson
Copy link

On resizer mousedown, save the current scroll position. On resizer mousemove
calculate the change and adjust the scroll position. This allows the current
scroll position to lock to the bottom of the screen when resizing the console
window. Tested on the latest chrome, firefox and safari.

On resizer mousedown, save the current scroll position. On resizer mousemove
calculate the change and adjust the scroll position. This allows the current
scroll position to lock to the bottom of the screen when rezizing the console
window. Tested on the latest chrome, firefox and safari.
@gsamokovarov
Copy link
Collaborator

Thanks Noah,

Can you post a gif of the before/after the PR? I can't seem to remember this issue and trying it out locally, can't spot the difference with the current JS we have.

@noahpatterson
Copy link
Author

before

before

after

after

@gsamokovarov
Copy link
Collaborator

🙇

gsamokovarov added a commit that referenced this pull request Feb 1, 2015
Lock scroll bottom on console window resize. Fixes #32.
@gsamokovarov gsamokovarov merged commit c4c5d71 into rails:master Feb 1, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants