Skip to content

Commit

Permalink
status bar x y fix
Browse files Browse the repository at this point in the history
Wiki translated link
  • Loading branch information
Megabyteceer committed Jan 9, 2025
1 parent 42fd22f commit 612ffa6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ npx electron "./thing-editor/electron-main"
[<img src="https://assets-global.website-files.com/63b2c230b49fa188ad86ffec/63f4c9689497e0d7c32f4a31_BGaming_logo.svg" width="400" alt="BGaming">](https://www.bgaming.com/)

### Documentation
For detailed documentation please check our [Wiki](https://github.com/Megabyteceer/thing-editor/wiki) for thing-editor v1.0.
For detailed documentation please check our [Wiki](https://github-com.translate.goog/Megabyteceer/thing-editor/wiki?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=wapp) for thing-editor v1.0.
2 changes: 1 addition & 1 deletion thing-editor/src/editor/ui/status-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default class StatusBar extends Component {
let txt = ' x: ' + game.__mouse_uncropped.x + ' y: ' + game.__mouse_uncropped.y;

if (game.editor.selection.length > 0) {
let p = game.editor.selection[0].toLocal(game.mouse);
let p = game.editor.selection[0].toLocal(game.mouse, game.currentContainer);
if (!isNaN(p.x)) {
txt += ' (x: ' + Math.round(p.x - game.editor.selection[0].pivot.x) + '; y: ' + Math.round(p.y - game.editor.selection[0].pivot.y) + ')';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ export default class ScrollLayer extends Container {

if (this._mouseHandlerContainer) {
this._mouseHandlerContainer.removeListener('pointerdown', this.onDown);
this._mouseHandlerContainer = null as any;
} else {
(game.pixiApp.view as HTMLCanvasElement).removeEventListener('pointerdown', this.onDown);
}
Expand Down

0 comments on commit 612ffa6

Please sign in to comment.