Support Microsoft Edge browser

event constructor type => pointerevent in MS Edge
This commit is contained in:
DABEOM KIM
2019-11-04 22:20:06 +09:00
committed by GitHub
parent 775b714861
commit 02f76a57df

View File

@@ -10175,7 +10175,8 @@ LGraphNode.prototype.executeAction = function(action)
if (
options.event &&
options.event.constructor !== MouseEvent &&
options.event.constructor !== CustomEvent
options.event.constructor !== CustomEvent &&
options.event.constructor !== PointerEvent
) {
console.error(
"Event passed to ContextMenu is not of type MouseEvent or CustomEvent. Ignoring it."