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

Maybe some comment on why we do this and what consequences it may have?

Also 'target->currentTarget' fix in sliding code looks appropriate for this patch + test if possible, what do you think? I'm worried that we can forget to fix it :)