Fixed mouse input.

Mouse input now only works inside the visible area, preventing items
outside of the visible area, such as in a scrollable panel, to be used
via mouse input.