mirror of
https://github.com/teoxoy/factorio-blueprint-editor.git
synced 2025-01-18 02:58:31 +02:00
tweaked maxzoom
This commit is contained in:
parent
1b52375d15
commit
2c57c3e92d
@ -40,7 +40,7 @@ export class BlueprintContainer extends PIXI.Container {
|
||||
this.zoomPan = new ZoomPan(this, G.sizeBPContainer, G.positionBPContainer, {
|
||||
width: G.app.screen.width,
|
||||
height: G.app.screen.height
|
||||
}, 10)
|
||||
}, 5)
|
||||
|
||||
this.movingEntityFilter = new AdjustmentFilter({ red: 0.4, blue: 0.4, green: 1 })
|
||||
|
||||
|
@ -109,7 +109,8 @@ export class ZoomPan {
|
||||
|
||||
const zoom = Math.min(
|
||||
(this.viewPortSize.width - this.viewPortPosition.x) / focusObjectSize.x,
|
||||
(this.viewPortSize.height - this.viewPortPosition.y) / focusObjectSize.y
|
||||
(this.viewPortSize.height - this.viewPortPosition.y) / focusObjectSize.y,
|
||||
this.maxZoom
|
||||
)
|
||||
this.scaleX = zoom
|
||||
this.scaleY = zoom
|
||||
|
Loading…
Reference in New Issue
Block a user