Skip to content

Commit

Permalink
Change camera zoom alternate mode key (#3832)
Browse files Browse the repository at this point in the history
* fix(threeMapControls): toggle zoomToCursor on Shift key press

* fix(threeMapControls): toggle zoomToCursor on Shift key press

* feat(visualization): add changelog entry (#3776)

* fix(visualization): change modifier key to Alt for alternate zoom mode (#3776)

* fix(visualization): update changelog to reflect ALT key for center-focused zoom option

---------

Co-authored-by: IhsenBouallegue <IhsenBouallegue@gmail.com>
Co-authored-by: Sebastian Wolf <65733509+phanlezz@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 28, 2024
1 parent 123dcc0 commit 50fa1da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion visualization/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/)

### Added 🚀

- Add alternative center-focused zoom option via the `🡹 Shift`-key [#3815](https://github.com/MaibornWolff/codecharta/pull/3815)
- Add alternative center-focused zoom option via the `ALT`-key [#3815](https://github.com/MaibornWolff/codecharta/pull/3815)
- Add an apply button when selecting maps [#3637](https://github.com/MaibornWolff/codecharta/pull/3637)

### Fixed 🐞
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ export class ThreeMapControlsService {
}

window.addEventListener("keydown", event => {
if (event.key === "Shift") {
if (event.key === "Alt") {
this.controls.zoomToCursor = false
}
})
window.addEventListener("keyup", event => {
if (event.key === "Shift") {
if (event.key === "Alt") {
this.controls.zoomToCursor = true
}
})
Expand Down

0 comments on commit 50fa1da

Please sign in to comment.