Last active
October 6, 2022 07:34
-
-
Save shohan4556/cc5aa9e0e806dc9416bb27d2dd4c48b9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
//? https://github.com/B2tGame/onmo-games-phaser/pull/4/files | |
(this.mouseUpCallback = null), | |
(this.mouseOutCallback = null), | |
(this.mouseOverCallback = null), | |
(this.capture = !1), | |
(this.active = !1), | |
(this.enabled = !0), | |
@@ -10805,9 +10802,6 @@ var momentData = JSON.parse(onmoHtmlGame.momentDatas); | |
(this._onMouseDown = null), | |
(this._onMouseMove = null), | |
(this._onMouseUp = null), | |
(this._onMouseOut = null), | |
(this._onMouseOver = null); | |
}), | |
@@ -10825,15 +10819,6 @@ var momentData = JSON.parse(onmoHtmlGame.momentDatas); | |
var e = this; | |
(this._onMouseDown = function (t) { | |
return e.onMouseDown(t); | |
}), | |
(this._onMouseMove = function (t) { | |
return e.onMouseMove(t); | |
@@ -10858,11 +10843,6 @@ var momentData = JSON.parse(onmoHtmlGame.momentDatas); | |
i.addEventListener('mousedown', this._onMouseDown, !0), | |
i.addEventListener('mousemove', this._onMouseMove, !0), | |
i.addEventListener('mouseup', this._onMouseUp, !0), | |
t.cocoonJS || | |
(window.addEventListener('mouseup', this._onMouseUpGlobal, !0), | |
window.addEventListener('mouseout', this._onMouseOutGlobal, !0), | |
@@ -10881,20 +10861,6 @@ var momentData = JSON.parse(onmoHtmlGame.momentDatas); | |
onMouseUp: function (t) { | |
(this.event = t), this.capture && t.preventDefault(), this.mouseUpCallback && this.mouseUpCallback.call(this.callbackContext, t), this.input.enabled && this.enabled && ((t.identifier = 0), this.input.mousePointer.stop(t)); | |
}, | |
onMouseUpGlobal: function (t) { | |
this.input.mousePointer.withinGame || (this.mouseUpCallback && this.mouseUpCallback.call(this.callbackContext, t), (t.identifier = 0), this.input.mousePointer.stop(t)); | |
}, | |
@@ -10922,9 +10888,6 @@ var momentData = JSON.parse(onmoHtmlGame.momentDatas); | |
t.removeEventListener('mouseup', this._onMouseUp, !0), | |
t.removeEventListener('mouseover', this._onMouseOver, !0), | |
t.removeEventListener('mouseout', this._onMouseOut, !0), | |
window.removeEventListener('mouseup', this._onMouseUpGlobal, !0), | |
window.removeEventListener('mouseout', this._onMouseOutGlobal, !0), | |
(this.active = !1); | |
@@ -35311,7 +35274,7 @@ window.addEventListener( | |
}, | |
false | |
); | |
if (!RUNNING_ON_IOS) { | |
document.addEventListener('touchstart', function (e) { | |
e.preventDefault(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment