This problem has been bugging me (no pun intended) for a long time. I would really appreciate a resolution.
Device / OS:
Samsung Galaxy Note 9 (SM-N960F)
Android 10
BubbleUPnP 4.5.0.1
Summary:
When opening a track’s three-dot overflow menu with the Galaxy Note 9 S Pen (and also on Galaxy tablet products), the menu scrolls immediately to the bottom without user input. The same action with a finger works normally (no auto-scroll).
Steps to reproduce:
On Galaxy Note 9, navigate to any track list in BubbleUPnP.
Use the S Pen to tap the three-dot overflow menu for a track with a long menu (scrollable).
As soon as the menu appears, it jumps to the bottom automatically — no drag or scroll performed.
Repeat the same with a finger: menu opens at top as expected, no jump.
Observed behavior:
With S Pen: menu always auto-scrolls to last item immediately upon opening.
With finger: menu remains at top until manually scrolled.
Behavior is identical in portrait and landscape.
Disabling Air View has no effect.
Expected behavior:
Menu should open at top regardless of input device (finger or S Pen) and remain there until the user scrolls.
Likely cause:
(Provided by chatGPT)
The popup menu’s scrollable view is processing the initial hover coordinate from TOOL_TYPE_STYLUS as a pointer movement and setting the scroll position to that item index.
For stylus events, onHoverEvent() may be incorrectly triggering a scroll before any touch/press occurs.
Suggested fix:
In the overflow menu’s scrollable view, ignore hover events for MotionEvent.getToolType(pointerIndex) == MotionEvent.TOOL_TYPE_STYLUS until an actual touch event is registered.
Example:
Impact:
This bug makes the overflow menu difficult to use with the S Pen on Galaxy Note devices.
Thank you for your attention to this matter (as Donald Trump would say).