mirror of
https://github.com/webxoss/webxoss-client.git
synced 2024-11-20 05:49:55 +01:00
📦 release bug fix for wrong touch area in mobile chrome
This commit is contained in:
parent
04c6dc89bb
commit
9ceff2984a
5 changed files with 12 additions and 7 deletions
1
build.js
1
build.js
|
@ -9,6 +9,7 @@ const map = {
|
||||||
],
|
],
|
||||||
'webxoss.js': [
|
'webxoss.js': [
|
||||||
'./lib/util.js',
|
'./lib/util.js',
|
||||||
|
'./lib/bugfix.js',
|
||||||
'MessageBox.js',
|
'MessageBox.js',
|
||||||
'IO.js',
|
'IO.js',
|
||||||
'Card.js',
|
'Card.js',
|
||||||
|
|
|
@ -226,7 +226,6 @@
|
||||||
<audio id="audio-bgm" loop></audio>
|
<audio id="audio-bgm" loop></audio>
|
||||||
<audio id="audio-sound-effect" autoplay></audio>
|
<audio id="audio-sound-effect" autoplay></audio>
|
||||||
|
|
||||||
<script src="./lib/ployfill.js"></script>
|
|
||||||
<script src="./lib/easeljs-0.8.2.min.js" defer="defer"></script>
|
<script src="./lib/easeljs-0.8.2.min.js" defer="defer"></script>
|
||||||
<script src="./socket.io.min.js" defer="defer"></script>
|
<script src="./socket.io.min.js" defer="defer"></script>
|
||||||
<script src="./CardInfo.js" defer="defer"></script>
|
<script src="./CardInfo.js" defer="defer"></script>
|
||||||
|
@ -241,6 +240,7 @@
|
||||||
<script src="./ImageManager.js" defer="defer"></script>
|
<script src="./ImageManager.js" defer="defer"></script>
|
||||||
<script src="./Detail.js" defer="defer"></script>
|
<script src="./Detail.js" defer="defer"></script>
|
||||||
<script src="./lib/util.js" defer="defer"></script>
|
<script src="./lib/util.js" defer="defer"></script>
|
||||||
|
<script src="./lib/bugfix.js" defer="defer"></script>
|
||||||
<script src="./MessageBox.js" defer="defer"></script>
|
<script src="./MessageBox.js" defer="defer"></script>
|
||||||
<script src="./IO.js" defer="defer"></script>
|
<script src="./IO.js" defer="defer"></script>
|
||||||
<script src="./Card.js" defer="defer"></script>
|
<script src="./Card.js" defer="defer"></script>
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
'use strict'
|
'use strict';
|
||||||
|
|
||||||
// fix issue webxoss/webxoss-core#44 - wrong touch area in mobile chrome
|
// fix issue webxoss/webxoss-core#44 - wrong touch area in mobile chrome
|
||||||
// issue discussion in Easel.js - https://github.com/CreateJS/EaselJS/issues/598#issuecomment-176299538
|
// issue discussion in Easel.js - https://github.com/CreateJS/EaselJS/issues/598#issuecomment-176299538
|
||||||
// learn more about this bug - https://bugs.chromium.org/p/chromium/issues/detail?id=489206
|
// learn more about this bug - https://bugs.chromium.org/p/chromium/issues/detail?id=489206
|
||||||
// fix method reference - https://stackoverflow.com/questions/41841704/
|
// fix method reference - https://stackoverflow.com/questions/41841704/
|
||||||
|
|
||||||
var mobileDevice = /Android|iPhone|/i.test(navigator.userAgent)
|
(function () {
|
||||||
|
|
||||||
|
var mobileDevice = /Android|iPhone|/i.test(navigator.userAgent);
|
||||||
var chromeVersion = +(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./) || [])[2];
|
var chromeVersion = +(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./) || [])[2];
|
||||||
|
|
||||||
if (mobileDevice && chromeVersion && chromeVersion < 61) {
|
if (mobileDevice && chromeVersion && chromeVersion < 61) {
|
||||||
|
@ -24,3 +26,5 @@ if (mobileDevice && chromeVersion && chromeVersion < 61) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
})();
|
|
@ -47,4 +47,4 @@ background/loading.gif
|
||||||
NETWORK:
|
NETWORK:
|
||||||
*
|
*
|
||||||
|
|
||||||
# 2017/08/31 10:43
|
# 2017/09/08 01:47
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue