Explorar o código

Merge pull request #47466 from Faless/js/4.x_notification_call_fix

[HTML5] Fix WM notifications not being called.
Rémi Verschelde %!s(int64=4) %!d(string=hai) anos
pai
achega
76a2e76468
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      platform/javascript/js/libs/library_godot_display.js

+ 1 - 1
platform/javascript/js/libs/library_godot_display.js

@@ -858,7 +858,7 @@ const GodotDisplay = {
 		const notif = [p_enter, p_exit, p_in, p_out];
 		['mouseover', 'mouseleave', 'focus', 'blur'].forEach(function (evt_name, idx) {
 			GodotDisplayListeners.add(canvas, evt_name, function () {
-				func.bind(null, notif[idx]);
+				func(notif[idx]);
 			}, true);
 		});
 	},