Browse Source

[HTML5] Fix WM notifications not being called.

Regression from the library refactoring, binding and not calling is
pretty useless 'o_o.
Fabio Alessandrelli 4 years ago
parent
commit
01658adb30
1 changed files with 1 additions and 1 deletions
  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);
 		});
 	},