Commit 4862014a authored by Oleg Korshul's avatar Oleg Korshul

disable pointerts on plugins, when mouse locked in editor

parent fbc3706b
...@@ -106,6 +106,10 @@ ...@@ -106,6 +106,10 @@
if (window.captureEvents) if (window.captureEvents)
window.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP); window.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP);
var _frame = document.getElementById("plugin_iframe");
if (_frame)
_frame.style.pointerEvents = "none";
/* /*
var parent = window; var parent = window;
while (true) while (true)
...@@ -136,6 +140,10 @@ ...@@ -136,6 +140,10 @@
if (window.releaseEvents) if (window.releaseEvents)
window.releaseEvents(Event.MOUSEMOVE); window.releaseEvents(Event.MOUSEMOVE);
var _frame = document.getElementById("plugin_iframe");
if (_frame)
_frame.style.pointerEvents = "";
/* /*
var parent = window; var parent = window;
while (true) while (true)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment