hazelgrove / hazel

Hazel, a live functional programming environment with typed holes
http://hazel.org/
MIT License
684 stars 45 forks source link

Stop context menu from rendering when not open #1314

Open disconcision opened 3 weeks ago

disconcision commented 3 weeks ago

Minor but increasing performance issue with a straightforward fix:

  1. create a type in model.ui_state that models whether or not the menu is open
  2. un/set this on hover and pin actions (you probably need to add these actions to UpdateAction & Update and add handlers to the UI)