Closed mingrui closed 6 years ago
I was thinking maybe an easier work around is to add zoom level buttons to be able to jump straight to the desired zoom level, and when I scroll I can't accidentally go pass that level.
Because a really big workflow hindrance right now for me is when I'm zooming in/out alot just to move around faster, but then sometimes I zoom past a zoom level and have to wait a few seconds, then I've already zoom out too much so I have to zoom back and wait for a few seconds again.
So if we could have a range threshold, we can't zoom pass the range and we won't trigger loading, I think this would be very useful.
Thanks!
I like that idea. Let me figure out how to do this.
Turns out it's rather tricky to know when reloading takes place, because it's not only about scale but also about the part you're seing. When zooming out, in many cases the current frame will still be within the cache (cache is current frame +/- one complete image width and height). However, if you zoom out, it can happen that you run out of the image before you run into a different scale.
Hmmm... I see what you mean. So two factors contribute to loading time: 1. zooming out to different scale. 2. zooming out to see more surrounding area.
I just tried the new slider, it is much easier to use because of the zoom label markings. I can just click on the desired zoom level now.
Thanks!
Just wanted to mention the new slider, but you already found out yourself :-)
I'm glad you like it.
This is related to https://github.com/maubreville/SlideRunner/issues/2
Right now dragging speed is perfect, but when switching between zoom levels, there is still a very noticeable lag, this is a little harder to describe, in the video you can see that when zooming within a zoom level, it's pretty smooth, but when I continue to zoom past a certain threshold level, it lags for a few seconds before catching up to my mouse pointer.
When using a mouse scroll wheel, it's much more noticeable.
Here is the video: https://drive.google.com/open?id=1Ep7ZwxrSP7dkaWYmb2ZSGoSUeiA_kW0i