crysterm
crysterm copied to clipboard
Mouse/click improvements
After applying patch for mouse support, edit src/widget/button.cr as the prototype component where mouse behavior re. clicking is to be polished. Minimum improvements necessary:
- Support hover over buttons
- Support press/release events and make them affect current widget style (e.g. to give "button press" visual feedback)
- If mouse moves out of button while clicked, releasing it will be no-op (like in GUIs)