After I got the same issue, I read from another forum about the same issue with S8. With S8, the problem was with fingerprint gestures. I turned mine off and like that forum said, my problem was fixed instantly.
Samsung members diagnostics didnt do anything - told to put my finger on the sensor...