Possible disable extraScrollPx

Added a check to disable extraScrollPx.