MaibornWolff / codecharta

CodeCharta visualizes multiple code metrics using 3D tree maps.
https://maibornwolff.github.io/codecharta/
BSD 3-Clause "New" or "Revised" License
188 stars 29 forks source link

Zooming out does not behave as zooming in #3757

Open BridgeAR opened 1 week ago

BridgeAR commented 1 week ago

Bug

Expected Behavior

GIVEN a user has a map open

WHEN zooming in to a building and then zooming out without moving the cursor

THEN the view should be identical to the original view

Actual Behavior

When zooming in, everything behaves as expected. Zooming out changes the position. We probably have to memorize the starting points from before zooming in.

Screenshots

Steps to Reproduce the Problem

  1. Zoom into a building
  2. Zoom out from that building again

Specifications

ChristianHuehn commented 6 days ago

Yes you are right, that is actually intended at the moment. We want to get feedback on it to decide if we change this or not. As zooming out from a cursor feels weird and lets you move lose track of the map entirely.

Richargh commented 2 days ago

I think the new behavior is less than ideal. Zooming in and out moves you across the map. You sort of jump to the right whenever you zoom out.

https://github.com/user-attachments/assets/fb8dc53d-feb6-4ce3-80c8-d3eac2ad9b1d