File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments