danoniplus 39.4.1 → 39.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/js/danoni_main.js +11 -4
  2. package/package.json +1 -1
package/js/danoni_main.js CHANGED
@@ -4,12 +4,12 @@
4
4
  *
5
5
  * Source by tickle
6
6
  * Created : 2018/10/08
7
- * Revised : 2025/02/11
7
+ * Revised : 2025/02/12
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 39.4.1`;
12
- const g_revisedDate = `2025/02/11`;
11
+ const g_version = `Ver 39.4.2`;
12
+ const g_revisedDate = `2025/02/12`;
13
13
 
14
14
  // カスタム用バージョン (danoni_custom.js 等で指定可)
15
15
  let g_localVersion = ``;
@@ -1174,6 +1174,9 @@ const createDivCss2Label = (_id, _text, { x = 0, y = 0, w = g_limitObj.setLblWid
1174
1174
  style.fontFamily = getBasicFont();
1175
1175
  style.textAlign = `${align}`;
1176
1176
  style.pointerEvents = C_DIS_NONE;
1177
+ if (rest?.overflow === C_DIS_AUTO) {
1178
+ style.pointerEvents = C_DIS_AUTO;
1179
+ }
1177
1180
  div.innerHTML = _text;
1178
1181
  Object.keys(rest).forEach(property => style[property] = rest[property]);
1179
1182
 
@@ -1255,6 +1258,9 @@ const createColorObject2 = (_id,
1255
1258
  style.webkitMaskImage = `url("${g_imgObj[charaStyle]}")`;
1256
1259
  style.webkitMaskSize = `contain`;
1257
1260
  style.pointerEvents = C_DIS_NONE;
1261
+ if (rest?.overflow === C_DIS_AUTO) {
1262
+ style.pointerEvents = C_DIS_AUTO;
1263
+ }
1258
1264
  Object.keys(rest).forEach(property => style[property] = rest[property]);
1259
1265
  setAttrs(div, { color: rest.background ?? ``, type: charaStyle, cnt: 0, });
1260
1266
 
@@ -1284,7 +1290,8 @@ const createEmptySprite = (_parentObj, _newObjId, { x = 0, y = 0, w = g_sWidth,
1284
1290
  div.title = title;
1285
1291
 
1286
1292
  const style = div.style;
1287
- style.pointerEvents = title === `` ? C_DIS_NONE : C_DIS_AUTO;
1293
+ style.pointerEvents = (title !== `` || rest?.overflow === C_DIS_AUTO)
1294
+ ? C_DIS_AUTO : C_DIS_NONE;
1288
1295
  Object.keys(rest).forEach(property => style[property] = rest[property]);
1289
1296
  _parentObj.appendChild(div);
1290
1297
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "39.4.1",
3
+ "version": "39.4.2",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {