Bug 1022755 - do not scroll if we're not in the right panel r=azasypkin

yep, good idea to keep in mind :)
using factories instead of constructors is always easier to test ;)