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

limit z range for mouse scrollwheel #85

Closed
berl opened this issue May 7, 2018 · 3 comments
Closed

limit z range for mouse scrollwheel #85

berl opened this issue May 7, 2018 · 3 comments

Comments

@berl
Copy link

berl commented May 7, 2018

Currently neuroglancer will allow you to ctl-scroll in z well outside the range of any image stacks. I'm working with stacks that are just a few images deep and it's easy to end up far away from the data. I'd love to see scrollable z range to the z limits of the data (maybe padded with 1 slice to make people feel good about reaching the end). Thanks!

@jbms
Copy link
Collaborator

jbms commented May 8, 2018

This feature makes sense --- are you interested in trying to implement it?

@berl
Copy link
Author

berl commented May 8, 2018

This is probably not a good job for me, given that I had to google what .ts is! From poking around, maybe it could be implemented by adding a check in the SpatialPosition class . The validity of the new z position is checked (i.e. is it null?) before updating it and there could be a new method added to the SpatialPosition class to check if it's in the z limits of any current stack. It's possible such a method could also be useful for annotation tasks and allowing the user to toggle display of annotation objects inside or outside the image data volume.

@jbms
Copy link
Collaborator

jbms commented Dec 3, 2019

At long last, this has been implemented as part of the general improvements to the handling of coordinate spaces in Neuroglancer.

@jbms jbms closed this as completed Dec 3, 2019
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

No branches or pull requests

2 participants