jalovatt / scythe

Lua GUI library and utility framework for Reaper scripts (formerly Lokasenna_GUI)
https://jalovatt.github.io/scythe
MIT License
26 stars 6 forks source link

Better solution for preventDefault + non-exclusive events #145

Open jalovatt opened 5 years ago

jalovatt commented 5 years ago

MouseEnter, Over, and Leave don't preclude other events from firing, so they currently set state.preventDefault = false afterward to avoid preventing others. This is awkward and brittle, and there's probably a better approach.

This could be a separate event handler, or could be fixed as part of a larger revamp of preventDefault.