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

Need Slice details on scroll event #683

Closed
Mamta92 opened this issue Sep 28, 2019 · 4 comments
Closed

Need Slice details on scroll event #683

Mamta92 opened this issue Sep 28, 2019 · 4 comments
Labels
question Further information is requested
Milestone

Comments

@Mamta92
Copy link

Mamta92 commented Sep 28, 2019

@ivmartel
On Scroll event, the images are scrolled. Want to know the image/tag details of each scroll change event, There is an event listener for slice change, but it only returns {type: "slice-change"}. Is there any other way through which we can know the current slice details?

@ivmartel ivmartel added the question Further information is requested label Oct 3, 2019
@ivmartel ivmartel added this to the 0.27.0 milestone Oct 3, 2019
@ivmartel
Copy link
Owner

ivmartel commented Oct 3, 2019

You are right, the event could come with an argument for the new slice position. From what I get from the code, the 'slice-change' event should also come with a 'position-change' one that contains the new position, would that fix you issue?

@Mamta92
Copy link
Author

Mamta92 commented Oct 11, 2019

@ivmartel ,
Suppose I load a series that has 100 images. Now if I scroll through those 100 images, can I get to know the details of which image I'm currently viewing? Suppose I scrolled upto the 5th image, is there a way to know the details of the 5th image?

I know we have the slice-change event, but it doesn't really helps me in identifying the image I'm currently viewing.

@ivmartel
Copy link
Owner

The slice change event carries the imageUid since c0580a3. Hope this helps.

@ivmartel
Copy link
Owner

Closing for now, feel free to comment if you need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants