Skip to content

Commit

Permalink
fix scaling issues, fix #265
Browse files Browse the repository at this point in the history
  • Loading branch information
Vegita2 committed Jun 27, 2024
1 parent ca3476e commit 773a0a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Keep filtered entities inactive when changing tabs [#301](https://github.com/CCDirectLink/crosscode-map-editor/issues/301)
- Increased special level layers to render at level 100 instead of 10 [#309](https://github.com/CCDirectLink/crosscode-map-editor/issues/309)
- Snap size inputs to defined range only after input loses focus, enabling smoother manual entry [#295](https://github.com/CCDirectLink/crosscode-map-editor/issues/295)
- Fixed Editor not resizing when zooming in/out in the Browser [#265](https://github.com/CCDirectLink/crosscode-map-editor/issues/265)

### Changed
- Layers on same level are rendered based on their position in the list
Expand Down
1 change: 1 addition & 0 deletions webapp/src/app/components/phaser/phaser.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export class PhaserComponent implements AfterViewInit {
return;
}
const scale = this.getScale();
Globals.game.scale.setZoom(1 / window.devicePixelRatio);
Globals.game.scale.resize(
scale.width,
scale.height
Expand Down

0 comments on commit 773a0a6

Please sign in to comment.