-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dfc2295
commit 5ed28ab
Showing
5 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "phaser-kinetic-scrolling-plugin", | ||
"version": "1.0.2", | ||
"homepage": "https://github.com/jdnichollsc/Phaser-Kinetic-Scrolling-Plugin", | ||
"authors": [ | ||
"Juan David Nicholls Cardona <[email protected]>" | ||
], | ||
"description": "Kinetic Scrolling Plugin for Phaser Framework", | ||
"main": "./dist/phaser-kinetic-scrolling-plugin.min.js", | ||
"keywords": [ | ||
"phaser", | ||
"scroll", | ||
"camera", | ||
"vertical", | ||
"horizontal", | ||
"mousewheel", | ||
"kinetic" | ||
], | ||
"license": "MIT", | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* @author Juan Nicholls <[email protected]> | ||
* @copyright 2015 Juan Nicholls - http://jdnichollsc.github.io/Phaser-Kinetic-Scrolling-Plugin/ | ||
* @license {@link http://opensource.org/licenses/MIT} | ||
* @version 1.0.1 | ||
* @version 1.0.2 | ||
*/ | ||
|
||
(function (Phaser) { | ||
|
@@ -256,7 +256,12 @@ | |
|
||
this.game.input.onDown.remove(this.beginMove, this); | ||
|
||
this.game.input.deleteMoveCallback(this.callbackID); | ||
if(this.callbackID){ | ||
this.game.input.deleteMoveCallback(this.callbackID); | ||
} | ||
else{ | ||
this.game.input.deleteMoveCallback(this.moveCamera, this); | ||
} | ||
|
||
this.game.input.onUp.remove(this.endMove, this); | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "phaser-kinetic-scrolling-plugin", | ||
"version": "1.0.1", | ||
"release": "V 1.0.1", | ||
"version": "1.0.2", | ||
"release": "V 1.0.2", | ||
"description": "Kinetic Scrolling Plugin for Phaser Framework", | ||
"author": "Juan David Nicholls Cardona <[email protected]>", | ||
"logo": "https://raw.github.com/jdnichollsc/Phaser-Kinetic-Scrolling-Plugin/gh-pages/img/plugin.png", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* @author Juan Nicholls <[email protected]> | ||
* @copyright 2015 Juan Nicholls - http://jdnichollsc.github.io/Phaser-Kinetic-Scrolling-Plugin/ | ||
* @license {@link http://opensource.org/licenses/MIT} | ||
* @version 1.0.1 | ||
* @version 1.0.2 | ||
*/ | ||
|
||
(function (Phaser) { | ||
|
@@ -256,7 +256,12 @@ | |
|
||
this.game.input.onDown.remove(this.beginMove, this); | ||
|
||
this.game.input.deleteMoveCallback(this.callbackID); | ||
if(this.callbackID){ | ||
this.game.input.deleteMoveCallback(this.callbackID); | ||
} | ||
else{ | ||
this.game.input.deleteMoveCallback(this.moveCamera, this); | ||
} | ||
|
||
this.game.input.onUp.remove(this.endMove, this); | ||
|
||
|