Bug: S Pen causes overflow track menu to auto-scroll to bottom on Galaxy Note 9

19 views
Skip to first unread message

Serenely Perplexed

unread,
Aug 8, 2025, 2:30:20 PMAug 8
to BubbleUPnP

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:

  1. On Galaxy Note 9, navigate to any track list in BubbleUPnP.

  2. Use the S Pen to tap the three-dot overflow menu for a track with a long menu (scrollable).

  3. As soon as the menu appears, it jumps to the bottom automatically — no drag or scroll performed.

  4. 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:

@Override public boolean onHoverEvent(MotionEvent event) { if (event.getToolType(0) == MotionEvent.TOOL_TYPE_STYLUS) { return false; // Ignore hover } return super.onHoverEvent(event); }

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).

Bubblesoft

unread,
Aug 9, 2025, 5:10:50 AMAug 9
to BubbleUPnP
Hi,

Thanks you for the detailed report an analysis.

Unfortunately, this is impossible for me to reproduce it to eventually fix it as the Android emulator does not support stylus emulation as far as I can tell.

Did you notice this issue in other apps with similar popup menus ? Note that there are many popup menu implementations. BubbleUPnP is using the standard 
appcompat one:

Reply all
Reply to author
Forward
0 new messages