mirror of
https://github.com/wassname/phaser.git
synced 2026-09-11 12:31:29 +08:00
Fixed the world drag issue across Sprite and Button.
This commit is contained in:
@@ -12,7 +12,6 @@ Phaser.Sprite
|
||||
button:
|
||||
Phaser.UI.Button
|
||||
function create() {
|
||||
game.stage.clear = false;
|
||||
// This is just an image that we'll toggle the display of when you click the button
|
||||
this.image = game.add.sprite(game.stage.centerX, 0, 'beast');
|
||||
this.image.transform.origin.setTo(0.5, 0);
|
||||
|
||||
Reference in New Issue
Block a user