Bug 897701: Don't entrain the target of the pan longer than necessary. r=jlebar