Skip to content

Commit 5e7f487

Browse files
committed
fix can't tap retry button on mobile devices
1 parent c62f214 commit 5e7f487

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/rpg_core/Graphics.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ Graphics.printLoadingError = function(url) {
288288
button.style.color = '#ffffff';
289289
button.style.backgroundColor = '#000000';
290290
button.onclick = ResourceHandler.retry.bind(ResourceHandler);
291+
button.ontouchstart = function(event) {
292+
ResourceHandler.retry();
293+
event.stopPropagation();
294+
};
291295
this._errorPrinter.appendChild(button);
292296
this._loadingCount = -Infinity;
293297
}

0 commit comments

Comments
 (0)