bili-small-game
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -24,2 +24,3 @@ // This file is always executed before the App's index.js. It sets up most of | ||
sharedCanvas.style = {}; | ||
sharedCanvas.getContext('2d'); | ||
var onScreen = true; | ||
@@ -26,0 +27,0 @@ window.__SmallApp.fileSystemManager = new BiliGame.FileSystemManager.Instance(); |
@@ -24,2 +24,3 @@ // This file is always executed before the App's index.js. It sets up most of | ||
sharedCanvas.style = {}; | ||
sharedCanvas.getContext('2d'); | ||
var onScreen = true; | ||
@@ -26,0 +27,0 @@ window.__SmallApp.fileSystemManager = new BiliGame.FileSystemManager.Instance(); |
@@ -19,2 +19,3 @@ // This file is always executed before the App's index.js. It sets up most of | ||
window.sharedCanvas = _internalBL.createCanvas(); | ||
window.sharedCanvas.getContext('2d'); | ||
var onScreen = true; | ||
@@ -89,2 +90,3 @@ | ||
onTouchStart: function(callback) { | ||
console.log('------ onTouchStart ------', callback); | ||
if (!callback) { | ||
@@ -96,2 +98,3 @@ return; | ||
offTouchStart: function(callback) { | ||
console.log('------ offTouchStart ------', callback); | ||
if (!callback) { | ||
@@ -103,2 +106,3 @@ return; | ||
onTouchMove: function(callback) { | ||
console.log('------ onTouchMove ------', callback); | ||
if (!callback) { | ||
@@ -110,8 +114,10 @@ return; | ||
offTouchMove: function(callback) { | ||
console.log('------ offTouchMove ------', callback); | ||
if (!callback) { | ||
return; | ||
} | ||
touchInput.addEventListener('touchmove', callback); | ||
touchInput.removeEventListener('touchmove', callback); | ||
}, | ||
onTouchEnd: function(callback) { | ||
console.log('------ onTouchEnd ------', callback); | ||
if (!callback) { | ||
@@ -123,6 +129,7 @@ return; | ||
offTouchEnd: function(callback) { | ||
console.log('------ offTouchEnd ------', callback); | ||
if (!callback) { | ||
return; | ||
} | ||
touchInput.addEventListener('touchend', callback); | ||
touchInput.removeEventListener('touchend', callback); | ||
}, | ||
@@ -139,3 +146,3 @@ onTouchCancel: function(callback) { | ||
} | ||
touchInput.addEventListener('touchcancel', callback); | ||
touchInput.removeEventListener('touchcancel', callback); | ||
}, | ||
@@ -142,0 +149,0 @@ // createInnerAudioContext : function (){ |
{ | ||
"name": "bili-small-game", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "bilibili small game", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
413839
2686
0