OneZoom / OZtree

OneZoom Tree of Life Explorer
Other
91 stars 20 forks source link

Blank space whilst panning on mobile #900

Closed jaredkhan closed 3 days ago

jaredkhan commented 1 week ago

On mobile, when panning the view, you can't see where you're panning until you stop moving. https://github.com/user-attachments/assets/50c43b95-9db1-481e-92c9-917557dc37e2

jaredkhan commented 1 week ago

On mobile, we optimise panning by taking a snapshot of the current view and just moving that around. One idea for a solution would be to take a snapshot of a wider view (3x the width and height) so that the image always covers the area you're panning to.

lentinj commented 1 week ago

This is due to switching ... yeah, that :)

Could we just throw the panning-an-image logic away? It was necessary back in the day, but phone and onezoom performance have probably caught up.

Worth trying, anyway.