Most likely the glass. Thick or badly fitting protectors leave a tiny air gap near the edges, especially on curved screens, and the touch layer can't sense your finger well through it.
Try this order:
- Turn on Touch sensitivity in Settings, Display. Samsung adds it for screen protectors.
- Look at the edge in light. A rainbow pattern or a white line means the glass isn't sitting flat.
- Run the Touch Screen Test and draw lines across the problem area.
Example: the line breaks at the top edge with the glass on and draws smoothly with the glass off. That means the protector is the problem.
If touches still fail with no protector, back up your phone and get the screen checked.