added configuration options to prevent panning in X and/or Y axes