Fixed NPE, caused by GestureDetector.onScroll