Skip to content

Commit d6db01c

Browse files
committed
Merge branch 'master' of https://github.com/photonstorm/phaser
2 parents 2b9be45 + a7e5c42 commit d6db01c

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/gameobjects/graphics/Graphics.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,9 @@ var Graphics = new Class({
10421042
},
10431043

10441044
/**
1045-
* [description]
1045+
* Saves the state of the Graphics by pushing the current state onto a stack.
1046+
*
1047+
* The most recently saved state can then be restored with {@link Phaser.GameObjects.Graphics#restore}.
10461048
*
10471049
* @method Phaser.GameObjects.Graphics#save
10481050
* @since 3.0.0
@@ -1059,7 +1061,11 @@ var Graphics = new Class({
10591061
},
10601062

10611063
/**
1062-
* [description]
1064+
* Restores the most recently saved state of the Graphics by popping from the state stack.
1065+
*
1066+
* Use {@link Phaser.GameObjects.Graphics#save} to save the current state, and call this afterwards to restore that state.
1067+
*
1068+
* If there is no saved state, this command does nothing.
10631069
*
10641070
* @method Phaser.GameObjects.Graphics#restore
10651071
* @since 3.0.0

src/input/InputPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ var InputPlugin = new Class({
803803
{
804804
gameObject = currentlyOver[i];
805805

806-
if (gameObject.input.draggable)
806+
if (gameObject.input.draggable && (gameObject.input.dragState === 0))
807807
{
808808
draglist.push(gameObject);
809809
}

0 commit comments

Comments
 (0)