Skip to content

Commit fd9310d

Browse files
authored
Merge pull request rpgtkoolmv#115 from rpgtkoolmv/patch_retrytap
fix can't tap retry button on mobile devices
2 parents 20c8119 + 76d73b1 commit fd9310d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/rpg_core/Graphics.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,10 @@ Graphics.printLoadingError = function(url) {
287287
button.style.fontSize = '24px';
288288
button.style.color = '#ffffff';
289289
button.style.backgroundColor = '#000000';
290-
button.onclick = ResourceHandler.retry.bind(ResourceHandler);
290+
button.onmousedown = button.ontouchstart = function(event) {
291+
ResourceHandler.retry();
292+
event.stopPropagation();
293+
};
291294
this._errorPrinter.appendChild(button);
292295
this._loadingCount = -Infinity;
293296
}

0 commit comments

Comments
 (0)