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

[HTML5] Fix WM notifications not being called.
This commit is contained in:
Rémi Verschelde 2021-03-29 21:08:43 +02:00 committed by GitHub
commit 76a2e76468
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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