Reveal cursor on panel expand

@peterflynn Simple fix for issue #3003, and (nearly) identical to closed and outdated pull request #3931.
It actually can be used for other purposes as well, so `Use only for panel expansion` should be removed.