You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
[HTML5] Fix WM notifications not being called.
Regression from the library refactoring, binding and not calling is pretty useless 'o_o.
This commit is contained in:
@@ -858,7 +858,7 @@ const GodotDisplay = {
|
|||||||
const notif = [p_enter, p_exit, p_in, p_out];
|
const notif = [p_enter, p_exit, p_in, p_out];
|
||||||
['mouseover', 'mouseleave', 'focus', 'blur'].forEach(function (evt_name, idx) {
|
['mouseover', 'mouseleave', 'focus', 'blur'].forEach(function (evt_name, idx) {
|
||||||
GodotDisplayListeners.add(canvas, evt_name, function () {
|
GodotDisplayListeners.add(canvas, evt_name, function () {
|
||||||
func.bind(null, notif[idx]);
|
func(notif[idx]);
|
||||||
}, true);
|
}, true);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user