Even the long-standing problem with the capacitive buttons is fixed.
Are you sure ?
For me not, even if i beleave yes just after flashing any ROM ...
The problem don't appear when holding phone in hands or when in charge but only after stayed a moment flat on a table and using it just with touch screen and with a tempered glass screen protection. (It work OK without protection)
I think since a long time that it's a quality material problem of touch screen and capacitive keys and depend of date for variable spare parts used for manufacture the phone. (different references used)
If i'm right it's not possible for any software to solve this specific material problem ...
For me i've solved this problem by using app "Swipe navigation" (ROOT needed) and have again with it the function "menu" button that was lost with android 7.