Fixes #14232. Do not change the view if not scrolling on the X axis. Thanks Sebastien Brunot (IBM CCLA)