Hello. There is a class inherited from View. It has scroll processing (GestureDetector, Scroller) on the onTouch event. But this does not work for the mouse. I spin the wheel and the scrolling does not go. I did not find an event on the Internet that is responsible for the mouse. Tell me how to handle mouse wheel.

1 answer 1

You need to put the View.OnGenericMotionListener() listener and catch the ACTION_SCROLL event

Works with API level> = 12

  • This GestureDetector case doesn’t work - Ivan