Fixed getMaxX function

Summary: getMaxX function should always return mMaxX value.
So far function returns always Integer.MAX_VALUE and this value
was used by onFling method.