It seems it is impossible to pan and zoom in a photo in macOS easily. In Windows using the scroll wheel someone can zooms in where the mouse cursor is and using left click it is possible to pan the photo.
Is this an issue with macOS itself or the default photo viewer in Mac? How can I zoom into the area where the mouse cursor is? How can I pan the photo afterwards?
I do not want to zoom in using the accessibility tool and I use a Logitech mouse. My Mac is Monterey 12.6.5.
Edit I have finally found that Option + Space allows to pan the photo. However, I cannot still zoom in where the mouse cursor is using the scroll wheel the same way it is done in Windows.