garrynewman / GWEN

Abandoned: GWEN - GUI Without Extravagant Nonsense.
MIT License
429 stars 102 forks source link

Enable mouse input for a scroll controls inner panel so that scrolling works when the mouse is not over a control #33

Closed jamiehales closed 11 years ago

jamiehales commented 11 years ago

If you have a ScrollPanel that is quite large, and not densely populated by controls then scroll behaviour is inconsistent. You can't currently scroll a ScrollPanel when using the MouseWheel in an empty part of the panel. This is because at least one of the items needs to be mouse enabled.

This patch simply sets MouseEnabled on the inner panel so that the mouse wheel works on an empty part of a ScrollPanel.