question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Point selection doesn't work at high zoom?

See original GitHub issue

🐛 Bug

When really zoomed in—pixel level—the point selection tool doesn’t always select points.

https://user-images.githubusercontent.com/76622105/141532392-27a10d87-4e7b-4813-b5a5-c18e89e49daf.mp4

To Reproduce

Steps to reproduce the behavior:

  1. Open Astronaut sample
  2. Add points layer
  3. Make a few points
  4. Zoom in on the points, select one and move it.
  5. Repeat 4, zoom in, use Select tool to move points.

Expected behavior

Points should “light up” on hover and be selectable at high zooms, just as at low zoom.

Environment

napari: 0.4.12 Platform: macOS-12.0.1-arm64-arm-64bit System: MacOS 12.0.1 Python: 3.9.6 | packaged by conda-forge | (default, Jul 6 2021, 08:51:19) [Clang 11.1.0 ] Qt: 5.15.2 PyQt5: 5.15.4 NumPy: 1.21.0 SciPy: 1.7.0 Dask: 2021.06.2 VisPy: 0.7.0

OpenGL:

  • GL version: 2.1 Metal - 76.1
  • MAX_TEXTURE_SIZE: 16384

Screens:

  • screen 1: resolution 1680x1050, scale 2.0

Plugins:

  • Measurements (skimage regionprops): 0.1.10
  • StarDist: 2021.10.25
  • Utilities (skimage regionprops): 0.1.10
  • aicsimageio-in-memory: 0.4.1
  • aicsimageio-out-of-memory: 0.4.1
  • animation: 0.0.2
  • clEsperanto: 0.10.7
  • console: 0.0.4
  • napari-tools-menu: 0.1.3
  • ome-types: 0.2.6
  • scikit-image: 0.4.12
  • svg: 0.1.5

Additional context

I noticed this same behavior using main when testing the new points cursor.

Also, why isn’t the zoom/pan function automatically active when using the Select tool? It seems like it should be, at least to my intuition.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
brisvagcommented, Dec 2, 2021

Automatically adjusting zoom would require (as you expected) a similar fix as the one required by #3734 . That’s not trivial, cause we need access to the camera zoom from the layer, afaik.

Changing default size is not really a solution, since that would depend on what other underlying data is there and how the camera initializes its zoom depending on it… I think the only good solution is to simply rework how points are rendered 😕

Closing; further discussion should go to #2894 or vispy/vispy#2078.

0reactions
psobolewskiPhDcommented, Dec 2, 2021

Ok, what about a kludge where on mac the size is reduced with zoom? I mean your example size=1 on my end is perfectly functional both at astronaut high zoom. In fact, smaller points at high zoom seem more useful!

Otherwise, maybe change the default size to maybe 2 or 3 so the effect is less likely to be triggered? Those are both functional at default zoom for astronaut on my end.

Edit: also i meant close the issue since it’s sort of a dupe.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does the zoom sometimes stop at a point?
If I'm not mistaken, the reason the zoom stops is because the perspective camera that you're essentially looking reaches the maximum focal ......
Read more >
Following the presenter's pointer - Zoom Support
How to follow the presenter's pointer during screen share ¡ Click on View Options. ¡ Hover your mouse over Zoom Ratio. ¡ Select...
Read more >
Problem: Zooming to a layer doesn't zoom to the correct extent ...
Technical Article Details : Problem: Zooming to a layer doesn't zoom to the correct extent of the features in the feature class.
Read more >
Change Zoom advanced options for accessibility on Mac
Change the size and position of the zoom window while working using the indicated keyboard shortcuts. Set the maximum and minimum levels of...
Read more >
Adjust your zoom and view options – Figma Help Center
This allows you to preview how objects will appear on both low and high resolution displays. To enable Pixel preview. Open the zoom/view...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found