Skip to content

Commit

Permalink
Fix auto scroll activated issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jdnichollsc committed Oct 8, 2018
1 parent a35bd96 commit cca53ef
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 3,460 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,9 @@ The repository has some examples of the plugin, to run the examples created by t
- onUpdate callback to track delta

## Collaborators
[<img alt="daniel-mf" src="https://avatars1.githubusercontent.com/u/4193707?s=117&v=4" width="117">](https://github.com/daniel-mf) |
[<img alt="VitaZheltyakov" src="https://avatars3.githubusercontent.com/u/5693437?v=3&s=117" width="117">](https://github.com/VitaZheltyakov) |
[<img alt="iamchristopher" src="https://avatars2.githubusercontent.com/u/5909516?v=3&s=117" width="117">](https://github.com/iamchristopher) |
[<img alt="daaaabeen" src="https://avatars0.githubusercontent.com/u/3760804?s=117&v=3" width="117">](https://github.com/daaaabeen) |
[<img alt="jdnichollsc" src="https://avatars3.githubusercontent.com/u/2154886?v=3&s=117" width="117">](https://github.com/jdnichollsc) |
[<img alt="jdnichollsc" src="https://avatars3.githubusercontent.com/u/2154886?v=3&s=117" width="117">](https://github.com/jdnichollsc) | [<img alt="daniel-mf" src="https://avatars1.githubusercontent.com/u/4193707?s=117&v=4" width="117">](https://github.com/daniel-mf) | [<img alt="VitaZheltyakov" src="https://avatars3.githubusercontent.com/u/5693437?v=3&s=117" width="117">](https://github.com/VitaZheltyakov) | [<img alt="iamchristopher" src="https://avatars2.githubusercontent.com/u/5909516?v=3&s=117" width="117">](https://github.com/iamchristopher) | [<img alt="daaaabeen" src="https://avatars0.githubusercontent.com/u/3760804?s=117&v=3" width="117">](https://github.com/daaaabeen) |
:---: |:---: |:---: |:---: |:---: |
[Daniel](mailto:[email protected]) | [Vitaliy](mailto:[email protected]) | [Chris Wright](https://twitter.com/jorbascrumps) | [Daaaabeen](mailto:dianbin.lee@gmail.com) | [Nicholls](mailto:jdnichollsc@hotmail.com) |
[Nicholls](mailto:[email protected]) | [Daniel](mailto:[email protected]) | [Vitaliy](mailto:[email protected]) | [Chris Wright](https://twitter.com/jorbascrumps) | [Daaaabeen](mailto:[email protected]) |

## Other Projects
- **[IonPhaser](http://market.ionic.io/plugins/ionphaser)**
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "phaser-kinetic-scrolling-plugin",
"version": "1.2.0",
"version": "1.2.1",
"homepage": "https://github.com/jdnichollsc/Phaser-Kinetic-Scrolling-Plugin",
"authors": [
"Juan David Nicholls Cardona <[email protected]>"
Expand Down
3 changes: 2 additions & 1 deletion dist/phaser-kinetic-scrolling-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @author Juan Nicholls <[email protected]>
* @copyright 2018 Juan Nicholls - http://jdnichollsc.github.io/Phaser-Kinetic-Scrolling-Plugin/
* @license {@link http://opensource.org/licenses/MIT}
* @version 1.2.0
* @version 1.2.1
*/

(function (Phaser) {
Expand Down Expand Up @@ -464,6 +464,7 @@
*/
Phaser.Plugin.KineticScrolling.prototype.stop = function () {

this.pressedDown = false;
this.game.input.onDown.remove(this.beginMove, this);

if (this.callbackID) {
Expand Down
2 changes: 1 addition & 1 deletion dist/phaser-kinetic-scrolling-plugin.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion examples/js/phaser-kinetic-scrolling-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @author Juan Nicholls <[email protected]>
* @copyright 2018 Juan Nicholls - http://jdnichollsc.github.io/Phaser-Kinetic-Scrolling-Plugin/
* @license {@link http://opensource.org/licenses/MIT}
* @version 1.2.0
* @version 1.2.1
*/

(function (Phaser) {
Expand Down Expand Up @@ -464,6 +464,7 @@
*/
Phaser.Plugin.KineticScrolling.prototype.stop = function () {

this.pressedDown = false;
this.game.input.onDown.remove(this.beginMove, this);

if (this.callbackID) {
Expand Down
20 changes: 10 additions & 10 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ var paths = {
gulp.task('default', ['dist', 'examples', 'watch']);

gulp.task('dist', function() {
return gulp.src(paths.source)
.pipe(concat("phaser-kinetic-scrolling-plugin.js"))
.pipe(gulp.dest("./dist/"))
.pipe(gulp.dest("./examples/js/"))
.pipe(rename({
extname: ".min.js"
}))
.pipe(uglify())
.pipe(gulp.dest("./dist/"))
.pipe(connect.reload());
return gulp.src(paths.source)
.pipe(concat("phaser-kinetic-scrolling-plugin.js"))
.pipe(gulp.dest("./dist/"))
.pipe(gulp.dest("./examples/js/"))
.pipe(rename({
extname: ".min.js"
}))
.pipe(uglify())
.pipe(gulp.dest("./dist/"))
.pipe(connect.reload());
});

gulp.task('examples', function() {
Expand Down
Loading

0 comments on commit cca53ef

Please sign in to comment.