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

Disabled scrolling to negative regions #426

Merged
merged 1 commit into from
Jul 5, 2016
Merged

Conversation

akmorrow13
Copy link
Collaborator

@akmorrow13 akmorrow13 commented Jul 4, 2016

This change is Reviewable

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 91.663% when pulling 2dfaf44 on akmorrow13:pileup into ed543e6 on hammerlab:master.

@@ -50,6 +50,10 @@ class Root extends React.Component {
}

handleRangeChange(newRange: GenomeRange) {
// Do not propigate negative ranges
if (newRange.start < 0) {
Copy link
Member

Choose a reason for hiding this comment

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

thanks for this change, @akmorrow13!

Do you think this would better behave in terms of the UI if we do newRange.start = 0 instead of just doing nothing (i.e. return)?

@akmorrow13
Copy link
Collaborator Author

Good call @armish . I have made those updates to now set the start to 0 if it is negative.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 91.663% when pulling 849b419 on akmorrow13:pileup into ed543e6 on hammerlab:master.

@armish
Copy link
Member

armish commented Jul 5, 2016

@akmorrow13: cool - thanks for the fix! Will make a minor release with this fix in a minute 👍

@armish armish merged commit 39f45e6 into hammerlab:master Jul 5, 2016
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

3 participants