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

I couldn't find an "external" way to do this...