Sniper

Weapons with the "Sniper" characteristic zoom-in while holding the charged attack button.

The Waystalker and the Huntsman can also press the alternative fire button while holding the charged attack button to zoom-in even further.