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

Incorrect behaviour when starting to zoom in/out of the map #3754

Open
Nereboss opened this issue Sep 17, 2024 · 0 comments
Open

Incorrect behaviour when starting to zoom in/out of the map #3754

Nereboss opened this issue Sep 17, 2024 · 0 comments
Labels
bug Only issues that describe bugs. pr-visualization Issues that touch the visualization pr(oject) which means web and desktop features. UX / UI Everything related to design and user experience

Comments

@Nereboss
Copy link
Collaborator

Bug

Expected Behavior

WHEN zooming in or out

THEN
it zoom in only to the cursor and out only from the center of the screen

Actual Behavior

The first 'tick' of zooming in/out still uses the other 'zoom style' so when first zooming in and then zooming out, the first 'tick of zooming out still takes the cursor as the point from where to zoom

Screenshots

Steps to Reproduce the Problem

  1. zoom in using the mouse wheel (everything should work as expected)
  2. zoom out using the mouse wheel (you should feel that the first tick of zooming feels different)

Specifications

  • is released in online-demo: yes | no
  • CodeCharta Version: current main (unreleased, next version is 1.128.0)
  • OS: MacOS
  • Browser: Any

Implementation specifics

we use zooming functionality from threeJS and change the zooming in/out by setting zoomToCursor to true or false in the threeMapControls.service.ts file. This is likely happening after threeJS calculates the zooming for a tick and needs to be changed to happen before.

@Nereboss Nereboss added bug Only issues that describe bugs. pr-visualization Issues that touch the visualization pr(oject) which means web and desktop features. UX / UI Everything related to design and user experience labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Only issues that describe bugs. pr-visualization Issues that touch the visualization pr(oject) which means web and desktop features. UX / UI Everything related to design and user experience
Projects
None yet
Development

No branches or pull requests

1 participant