Browse Source

Fixed context menu clipping bug.

master
chrisgregan 10 years ago
parent
commit
81d3b391a5
  1. 3
      Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs

3
Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs

@ -91,7 +91,8 @@ namespace Fungus.Script
fungusScript.scriptScrollPos = GLDraw.BeginScrollView(scriptViewRect, fungusScript.scriptScrollPos, scrollViewRect, clipRect);
if (Event.current.type == EventType.ContextClick)
if (Event.current.type == EventType.ContextClick &&
clipRect.Contains(Event.current.mousePosition))
{
GenericMenu menu = new GenericMenu();
Vector2 mousePos = Event.current.mousePosition;

Loading…
Cancel
Save