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

This looks fragile but I checked it was correctly failing when I removed the "return" in the promise constructor