Confirmed for Mac OS X El Capitan, running Java 1.8 with Minecraft 1.10.2 (vanilla, no mods).
This has been an issue for far too long, and is incredibly frustrating. Whilst I've never personally encountered it on Linux, it was always a problem on OS X. I've also tried under macOS Sierra running Java 1.8, with the same result.
Can reproduce on a Google Pixel running Android 8.1.0
Linux Kernel 3.18.70. Game version 1.2.8