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

documented false as a allowed scrollTo value #503

Merged
merged 1 commit into from Mar 18, 2015
Merged

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Mar 17, 2015

No description provided.

@@ -165,7 +165,7 @@ key | default | description
`replace` | false | replace URL without adding browser history entry
`maxCacheLength` | 20 | maximum cache size for previous container contents
`version` | | a string or function returning the current pjax version
`scrollTo` | 0 | vertical position to scroll to after navigation
`scrollTo` | 0 | vertical position to scroll to after navigation. `false` to disable scrolling.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Can it say "false to not change scroll position"? Because we aren't really "disabling" scrolling.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like: "To avoid changing scroll position, pass false."

@staabm
Copy link
Contributor Author

staabm commented Mar 18, 2015

@mislav fixed per feedback

1 similar comment
@staabm
Copy link
Contributor Author

staabm commented Mar 18, 2015

@mislav fixed per feedback

@staabm staabm closed this Mar 18, 2015
@staabm staabm reopened this Mar 18, 2015
@staabm
Copy link
Contributor Author

staabm commented Mar 18, 2015

hmm seems like a github bug (double post and close)

@mislav
Copy link
Collaborator

mislav commented Mar 18, 2015

Looks great thanks.

Can you remember what you did when you got double-post and closed by accident? Did you press the "Comment" button with mouse or used Cmd+Enter? I can try fixing the bug if you gave me more information about how to reproduce.

mislav added a commit that referenced this pull request Mar 18, 2015
documented `false` as a allowed `scrollTo` value
@mislav mislav merged commit 3cf3de1 into defunkt:master Mar 18, 2015
@staabm
Copy link
Contributor Author

staabm commented Mar 18, 2015

I did a ctrl+enter in firefox developer edition on win7x64

@staabm staabm deleted the patch-2 branch March 18, 2015 20:24
@mislav
Copy link
Collaborator

mislav commented Mar 18, 2015

Thanks. Is there a chance you pressed Ctrl+Enter twice?

@staabm
Copy link
Contributor Author

staabm commented Mar 19, 2015

Hm that might also be the case...

@mislav
Copy link
Collaborator

mislav commented Mar 19, 2015 via email

@staabm
Copy link
Contributor Author

staabm commented Mar 19, 2015

I am also unable to reproduce

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