Events.onInputUp would be dispatched twice if the Sprite had drag enabled, now only dispatched once (thanks Overbryd, fixes #502)

Changed webfont URI back to //
This commit is contained in:
photonstorm
2014-03-02 11:31:26 +00:00
parent 3794a846d4
commit 442e6bb776
4 changed files with 3 additions and 3 deletions
+1
View File
@@ -196,6 +196,7 @@ Bug Fixes:
* If the game was set to NO_SCALE and you swapped orientation, it would pause and resize, then fail to resize when you swapped back (thanks starnut, fixes #258)
* Device no longer things a Windows Phone or Windows Tablet are desktop devices (thanks wombatbuddy, fixes #506)
* Sound.onMarkerComplete event is now dispatched when a marker stops. See Sound.onLoop for a looping marker event (thanks registered99, fixes #500)
* Events.onInputUp would be dispatched twice if the Sprite had drag enabled, now only dispatched once (thanks Overbryd, fixes #502)
TO DO:
+1 -1
View File
@@ -19,7 +19,7 @@ WebFontConfig = {
function preload() {
// Load the Google WebFont Loader script
game.load.script('webfont', 'http://ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js');
game.load.script('webfont', '//ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js');
}
+1 -1
View File
@@ -19,7 +19,7 @@ WebFontConfig = {
function preload() {
// Load the Google WebFont Loader script
game.load.script('webfont', 'http://ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js');
game.load.script('webfont', '//ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js');
}
-1
View File
@@ -1118,7 +1118,6 @@ Phaser.InputHandler.prototype = {
}
this.sprite.events.onDragStop.dispatch(this.sprite, pointer);
this.sprite.events.onInputUp.dispatch(this.sprite, pointer);
if (this.checkPointerOver(pointer) === false)
{