[HTML5] Fix WM notifications not being called.

Regression from the library refactoring, binding and not calling is
pretty useless 'o_o.

(cherry picked from commit 01658adb30)
This commit is contained in:
Fabio Alessandrelli 2021-03-29 20:02:29 +02:00 committed by Rémi Verschelde
parent 10fb798883
commit 74fd9409d5
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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);
});
},